Home
last modified time | relevance | path

Searched refs:DIRA (Results 1 - 6 of 6) sorted by relevance

/third_party/ltp/testcases/kernel/containers/mountns/
H A Dmountns03.c15 * - Creates directories DIRA, DIRB and files DIRA/"A", DIRB/"B"
18 * - Bind mounts directory DIRA to itself
19 * - Makes directory DIRA shared
25 * .. X: bind mounts DIRB to DIRA
26 * .. Y: must see the file DIRA/"B"
27 * .. X: umounts DIRA
29 * .. Y: bind mounts DIRB to DIRA
30 * .. X: must see only the DIRA/"A" and must not see DIRA/"
[all...]
H A Dmountns02.c30 * .. Y: umounts DIRA
43 if ((access(DIRA "/A", F_OK) != 0) || (access(DIRA "/B", F_OK) == 0)) in child_func()
50 SAFE_MOUNT(DIRB, DIRA, "none", MS_BIND, NULL); in child_func()
54 SAFE_UMOUNT(DIRA); in child_func()
69 SAFE_MOUNT(DIRA, DIRA, "none", MS_BIND, NULL); in run()
71 SAFE_MOUNT("none", DIRA, "none", MS_PRIVATE, NULL); in run()
78 SAFE_MOUNT(DIRB, DIRA, "none", MS_BIND, NULL); in run()
82 SAFE_UMOUNT(DIRA); in run()
[all...]
H A Dmountns01.c42 if (access(DIRA "/B", F_OK) == 0) in child_func()
49 /* bind mounts DIRB to DIRA making contents of DIRB visible in DIRA */ in child_func()
50 SAFE_MOUNT(DIRB, DIRA, "none", MS_BIND, NULL); in child_func()
54 SAFE_UMOUNT(DIRA); in child_func()
69 SAFE_MOUNT(DIRA, DIRA, "none", MS_BIND, NULL); in run()
70 SAFE_MOUNT("none", DIRA, "none", MS_SHARED, NULL); in run()
77 SAFE_MOUNT(DIRB, DIRA, "none", MS_BIND, NULL); in run()
81 SAFE_UMOUNT(DIRA); in run()
[all...]
H A Dmountns.h12 #define DIRA "LTP_DIR_A" macro
17 if (tst_is_mounted(DIRA)) in umount_folders()
18 SAFE_UMOUNT(DIRA); in umount_folders()
26 SAFE_MKDIR(DIRA, 0777); in create_folders()
28 SAFE_TOUCH(DIRA "/A", 0, NULL); in create_folders()
H A Dmountns04.c13 * - Creates directories DIRA, DIRB and files DIRA/"A", DIRB/"B"
16 * - Bind mounts directory DIRA to DIRA
17 * - Makes directory DIRA unbindable
18 * - Check if bind mount unbindable DIRA to DIRB fails as expected
34 SAFE_MOUNT(DIRA, DIRA, "none", MS_BIND, NULL); in run()
36 SAFE_MOUNT("none", DIRA, "none", MS_UNBINDABLE, NULL); in run()
38 if (mount(DIRA, DIR in run()
[all...]
H A Dmountns_helper.h20 #define DIRA "A" macro
46 umount(DIRA); in cleanup()
57 SAFE_MKDIR(cleanup, DIRA, 0777); in setup()
59 SAFE_TOUCH(cleanup, DIRA"/A", 0, NULL); in setup()

Completed in 2 milliseconds