diff options
Diffstat (limited to 'mount.c')
-rw-r--r-- | mount.c | 32 |
1 files changed, 19 insertions, 13 deletions
@@ -66,26 +66,28 @@ extern const char mtab_file[]; /* Defined in utility.c */ | |||
66 | 66 | ||
67 | static const char mount_usage[] = "\tmount [flags]\n" | 67 | static const char mount_usage[] = "\tmount [flags]\n" |
68 | "\tmount [flags] device directory [-o options,more-options]\n" | 68 | "\tmount [flags] device directory [-o options,more-options]\n" |
69 | "\n" "Flags:\n" "\t-a:\tMount all file systems in fstab.\n" | 69 | "\n" "Flags:\n" |
70 | "\t-a:\t\tMount all file systems in fstab.\n" | ||
70 | #ifdef BB_MTAB | 71 | #ifdef BB_MTAB |
71 | "\t-f:\t\"Fake\" mount. Add entry to mount table but don't mount it.\n" | 72 | "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n" |
72 | "\t-n:\tDon't write a mount table entry.\n" | 73 | "\t-n:\t\tDon't write a mount table entry.\n" |
73 | #endif | 74 | #endif |
74 | "\t-o option:\tOne of many filesystem options, listed below.\n" | 75 | "\t-o option:\tOne of many filesystem options, listed below.\n" |
75 | "\t-r:\tMount the filesystem read-only.\n" | 76 | "\t-r:\t\tMount the filesystem read-only.\n" |
76 | "\t-t filesystem-type:\tSpecify the filesystem type.\n" | 77 | "\t-t fs-type:\tSpecify the filesystem type.\n" |
77 | "\t-w:\tMount for reading and writing (default).\n" | 78 | "\t-w:\t\tMount for reading and writing (default).\n" |
78 | "\n" | 79 | "\n" |
79 | "Options for use with the \"-o\" flag:\n" | 80 | "Options for use with the \"-o\" flag:\n" |
80 | "\tasync / sync:\tWrites are asynchronous / synchronous.\n" | 81 | "\tasync/sync:\tWrites are asynchronous / synchronous.\n" |
81 | "\tdev / nodev:\tAllow use of special device files / disallow them.\n" | 82 | "\tatime/noatime:\tEnable / disable updates to inode access times.\n" |
82 | "\texec / noexec:\tAllow use of executable files / disallow them.\n" | 83 | "\tdev/nodev:\tAllow use of special device files / disallow them.\n" |
84 | "\texec/noexec:\tAllow use of executable files / disallow them.\n" | ||
83 | #if defined BB_FEATURE_MOUNT_LOOP | 85 | #if defined BB_FEATURE_MOUNT_LOOP |
84 | "\tloop: Mounts a file via loop device.\n" | 86 | "\tloop:\t\tMounts a file via loop device.\n" |
85 | #endif | 87 | #endif |
86 | "\tsuid / nosuid:\tAllow set-user-id-root programs / disallow them.\n" | 88 | "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n" |
87 | "\tremount: Re-mount a currently-mounted filesystem, changing its flags.\n" | 89 | "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n" |
88 | "\tro / rw: Mount for read-only / read-write.\n" | 90 | "\tro/rw:\t\tMount for read-only / read-write.\n" |
89 | "There are EVEN MORE flags that are specific to each filesystem.\n" | 91 | "There are EVEN MORE flags that are specific to each filesystem.\n" |
90 | "You'll have to see the written documentation for those.\n"; | 92 | "You'll have to see the written documentation for those.\n"; |
91 | 93 | ||
@@ -98,10 +100,14 @@ struct mount_options { | |||
98 | 100 | ||
99 | static const struct mount_options mount_options[] = { | 101 | static const struct mount_options mount_options[] = { |
100 | {"async", ~MS_SYNCHRONOUS, 0}, | 102 | {"async", ~MS_SYNCHRONOUS, 0}, |
103 | {"atime", ~0, ~MS_NOATIME}, | ||
101 | {"defaults", ~0, 0}, | 104 | {"defaults", ~0, 0}, |
102 | {"dev", ~MS_NODEV, 0}, | 105 | {"dev", ~MS_NODEV, 0}, |
106 | {"diratime", ~0, ~MS_NODIRATIME}, | ||
103 | {"exec", ~MS_NOEXEC, 0}, | 107 | {"exec", ~MS_NOEXEC, 0}, |
108 | {"noatime", ~0, MS_NOATIME}, | ||
104 | {"nodev", ~0, MS_NODEV}, | 109 | {"nodev", ~0, MS_NODEV}, |
110 | {"nodiratime", ~0, MS_NODIRATIME}, | ||
105 | {"noexec", ~0, MS_NOEXEC}, | 111 | {"noexec", ~0, MS_NOEXEC}, |
106 | {"nosuid", ~0, MS_NOSUID}, | 112 | {"nosuid", ~0, MS_NOSUID}, |
107 | {"remount", ~0, MS_REMOUNT}, | 113 | {"remount", ~0, MS_REMOUNT}, |