aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/umount.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c
index b45cd8a6b..e2329f8b3 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -57,6 +57,7 @@
57//usage: IF_FEATURE_MOUNT_LOOP( 57//usage: IF_FEATURE_MOUNT_LOOP(
58//usage: "\n -d Free loop device if it has been used" 58//usage: "\n -d Free loop device if it has been used"
59//usage: ) 59//usage: )
60//usage: "\n -t FSTYPE[,...] Unmount only these filesystem type(s)"
60//usage: 61//usage:
61//usage:#define umount_example_usage 62//usage:#define umount_example_usage
62//usage: "$ umount /dev/hdc1\n" 63//usage: "$ umount /dev/hdc1\n"
@@ -81,8 +82,8 @@ static struct mntent *getmntent_r(FILE* stream, struct mntent* result,
81} 82}
82#endif 83#endif
83 84
84/* ignored: -c -v -t -i */ 85/* ignored: -c -v -i */
85#define OPTION_STRING "fldnra" "cvt:i" 86#define OPTION_STRING "fldnrat:" "cvi"
86#define OPT_FORCE (1 << 0) // Same as MNT_FORCE 87#define OPT_FORCE (1 << 0) // Same as MNT_FORCE
87#define OPT_LAZY (1 << 1) // Same as MNT_DETACH 88#define OPT_LAZY (1 << 1) // Same as MNT_DETACH
88#define OPT_FREELOOP (1 << 2) 89#define OPT_FREELOOP (1 << 2)
@@ -143,7 +144,8 @@ int umount_main(int argc UNUSED_PARAM, char **argv)
143 } 144 }
144 145
145 // If we're not umounting all, we need at least one argument. 146 // If we're not umounting all, we need at least one argument.
146 if (!(opt & OPT_ALL) && !fstype) { 147 // Note: "-t FSTYPE" does not imply -a.
148 if (!(opt & OPT_ALL)) {
147 if (!argv[0]) 149 if (!argv[0])
148 bb_show_usage(); 150 bb_show_usage();
149 m = NULL; 151 m = NULL;