diff options
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r-- | util-linux/mount.c | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 72dabd840..56c32e126 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
10 | */ | 10 | */ |
11 | |||
12 | // Design notes: There is no spec for mount. Remind me to write one. | 11 | // Design notes: There is no spec for mount. Remind me to write one. |
13 | // | 12 | // |
14 | // mount_main() calls singlemount() which calls mount_it_now(). | 13 | // mount_main() calls singlemount() which calls mount_it_now(). |
@@ -17,9 +16,37 @@ | |||
17 | // singlemount() can loop through /etc/filesystems for fstype detection. | 16 | // singlemount() can loop through /etc/filesystems for fstype detection. |
18 | // mount_it_now() does the actual mount. | 17 | // mount_it_now() does the actual mount. |
19 | // | 18 | // |
20 | |||
21 | #include <mntent.h> | 19 | #include <mntent.h> |
22 | #include <syslog.h> | 20 | #include <syslog.h> |
21 | #include <sys/mount.h> | ||
22 | #ifndef MS_BIND | ||
23 | # define MS_BIND (1 << 12) | ||
24 | #endif | ||
25 | #ifndef MS_MOVE | ||
26 | # define MS_MOVE (1 << 13) | ||
27 | #endif | ||
28 | #ifndef MS_RECURSIVE | ||
29 | # define MS_RECURSIVE (1 << 14) | ||
30 | #endif | ||
31 | #ifndef MS_SILENT | ||
32 | # define MS_SILENT (1 << 15) | ||
33 | #endif | ||
34 | /* The shared subtree stuff, which went in around 2.6.15. */ | ||
35 | #ifndef MS_UNBINDABLE | ||
36 | # define MS_UNBINDABLE (1 << 17) | ||
37 | #endif | ||
38 | #ifndef MS_PRIVATE | ||
39 | # define MS_PRIVATE (1 << 18) | ||
40 | #endif | ||
41 | #ifndef MS_SLAVE | ||
42 | # define MS_SLAVE (1 << 19) | ||
43 | #endif | ||
44 | #ifndef MS_SHARED | ||
45 | # define MS_SHARED (1 << 20) | ||
46 | #endif | ||
47 | #ifndef MS_RELATIME | ||
48 | # define MS_RELATIME (1 << 21) | ||
49 | #endif | ||
23 | #include "libbb.h" | 50 | #include "libbb.h" |
24 | 51 | ||
25 | #if ENABLE_FEATURE_MOUNT_LABEL | 52 | #if ENABLE_FEATURE_MOUNT_LABEL |