OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:DIRA
(Results
1 - 5
of
5
) sorted by null
/external/ltp/testcases/kernel/containers/mountns/
mountns02.c
58
if ((access(
DIRA
"/A", F_OK) != 0) || (access(
DIRA
"/B", F_OK) == 0))
63
/* bind mounts DIRB to
DIRA
making contents of DIRB visible
64
* in
DIRA
*/
65
if (mount(DIRB,
DIRA
, "none", MS_BIND, NULL) == -1) {
72
umount(
DIRA
);
86
/* bind mounts
DIRA
to itself */
87
SAFE_MOUNT(cleanup,
DIRA
,
DIRA
, "none", MS_BIND, NULL);
89
/* makes mount
DIRA
private *
[
all
...]
mountns03.c
61
/* makes mount
DIRA
a slave of
DIRA
(all slave mounts have
63
if (mount("none",
DIRA
, "none", MS_SLAVE, NULL) == -1) {
71
if (access(
DIRA
"/B", F_OK) == -1)
76
/* bind mounts DIRB to
DIRA
making contents of DIRB visible
77
* in
DIRA
*/
78
if (mount(DIRB,
DIRA
, "none", MS_BIND, NULL) == -1) {
85
umount(
DIRA
);
99
/* bind mounts
DIRA
to itself */
100
SAFE_MOUNT(cleanup,
DIRA
, DIRA, "none", MS_BIND, NULL)
[
all
...]
mountns_helper.h
20
#define
DIRA
"A"
46
umount(
DIRA
);
57
SAFE_MKDIR(cleanup,
DIRA
, 0777);
59
SAFE_TOUCH(cleanup,
DIRA
"/A", 0, NULL);
mountns04.c
53
/* bind mounts
DIRA
to itself */
54
SAFE_MOUNT(cleanup,
DIRA
,
DIRA
, "none", MS_BIND, NULL);
55
/* makes mount
DIRA
unbindable */
56
SAFE_MOUNT(cleanup, "none",
DIRA
, "none", MS_UNBINDABLE, NULL);
58
/* tries to bind mount unbindable
DIRA
to DIRB which should fail */
59
if (mount(
DIRA
, DIRB, "none", MS_BIND, NULL) == -1) {
66
SAFE_UMOUNT(cleanup,
DIRA
);
mountns01.c
58
if (access(
DIRA
"/B", F_OK) == -1)
63
/* bind mounts DIRB to
DIRA
making contents of DIRB visible
64
* in
DIRA
*/
65
if (mount(DIRB,
DIRA
, "none", MS_BIND, NULL) == -1) {
72
umount(
DIRA
);
86
/* bind mounts
DIRA
to itself */
87
SAFE_MOUNT(cleanup,
DIRA
,
DIRA
, "none", MS_BIND, NULL);
89
/* makes mount
DIRA
shared */
90
SAFE_MOUNT(cleanup, "none",
DIRA
, "none", MS_SHARED, NULL)
[
all
...]
Completed in 103 milliseconds