[LTP] [PATCH] mountns: Fix doc to fit RST format

Ma Xinjian maxj.fnst@fujitsu.com
Tue Feb 25 10:21:10 CET 2025


Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
 .../kernel/containers/mountns/mountns01.c     | 20 ++++++++++-------
 .../kernel/containers/mountns/mountns02.c     | 20 ++++++++++-------
 .../kernel/containers/mountns/mountns03.c     | 22 +++++++++++--------
 3 files changed, 37 insertions(+), 25 deletions(-)

diff --git a/testcases/kernel/containers/mountns/mountns01.c b/testcases/kernel/containers/mountns/mountns01.c
index 2c1c978fd..749d554c1 100644
--- a/testcases/kernel/containers/mountns/mountns01.c
+++ b/testcases/kernel/containers/mountns/mountns01.c
@@ -17,14 +17,18 @@
  * - Makes directory DIR_A shared
  * - Clones a new child process with CLONE_NEWNS flag
  * - There are two test cases (where X is parent namespace and Y child namespace):
- *  1. First test case
- *   .. X: bind mounts DIR_B to DIR_A
- *   .. Y: must see DIR_A/"B"
- *   .. X: umounts DIR_A
- *  2. Second test case
- *   .. Y: bind mounts DIR_B to DIR_A
- *   .. X: must see DIR_A/"B"
- *   .. Y: umounts DIR_A
+ *
+ *   1. First test case
+ *
+ *     - X: bind mounts DIR_B to DIR_A
+ *     - Y: must see DIR_A/"B"
+ *     - X: umounts DIR_A
+ *
+ *   2. Second test case
+ *
+ *     - Y: bind mounts DIR_B to DIR_A
+ *     - X: must see DIR_A/"B"
+ *     - Y: umounts DIR_A
  */
 
 #include <sys/wait.h>
diff --git a/testcases/kernel/containers/mountns/mountns02.c b/testcases/kernel/containers/mountns/mountns02.c
index cdc36068d..0dda86f30 100644
--- a/testcases/kernel/containers/mountns/mountns02.c
+++ b/testcases/kernel/containers/mountns/mountns02.c
@@ -18,14 +18,18 @@
  * - Clones a new child process with CLONE_NEWNS flag
  * - There are two test cases (where X is parent namespace and Y child
  *   namespace):
- *  1. First test case
- *   .. X: bind mounts DIR_B to DIR_A
- *   .. Y: must see DIR_A/"A" and must not see DIR_A/"B"
- *   .. X: umounts DIR_A
- *  2. Second test case
- *   .. Y: bind mounts DIR_B to DIR_A
- *   .. X: must see DIR_A/"A" and must not see DIR_A/"B"
- *   .. Y: umounts DIRA
+ *
+ *   1. First test case
+ *
+ *     - X: bind mounts DIR_B to DIR_A
+ *     - Y: must see DIR_A/"A" and must not see DIR_A/"B"
+ *     - X: umounts DIR_A
+ *
+ *   2. Second test case
+ *
+ *     - Y: bind mounts DIR_B to DIR_A
+ *     - X: must see DIR_A/"A" and must not see DIR_A/"B"
+ *     - Y: umounts DIRA
  */
 
 #include <sys/wait.h>
diff --git a/testcases/kernel/containers/mountns/mountns03.c b/testcases/kernel/containers/mountns/mountns03.c
index 2debfd104..c8df17638 100644
--- a/testcases/kernel/containers/mountns/mountns03.c
+++ b/testcases/kernel/containers/mountns/mountns03.c
@@ -19,15 +19,19 @@
  *   mount
  * - There are two testcases (where X is parent namespace and Y child
  *   namespace):
- *  1. First test case
- *   .. X: bind mounts DIRB to DIRA
- *   .. Y: must see the file DIRA/"B"
- *   .. X: umounts DIRA
- *  2. Second test case
- *   .. Y: bind mounts DIRB to DIRA
- *   .. X: must see only the DIRA/"A" and must not see DIRA/"B" (as slave mount does
- *         not forward propagation)
- *   .. Y: umounts DIRA
+ *
+ *   1. First test case
+ *
+ *     - X: bind mounts DIRB to DIRA
+ *     - Y: must see the file DIRA/"B"
+ *     - X: umounts DIRA
+ *
+ *   2. Second test case
+ *
+ *     - Y: bind mounts DIRB to DIRA
+ *     - X: must see only the DIRA/"A" and must not see DIRA/"B" (as slave mount does
+ *          not forward propagation)
+ *     - Y: umounts DIRA
  */
 
 #include <sys/wait.h>
-- 
2.47.0



More information about the ltp mailing list