diff options
author | Pere Orga | 2011-04-11 03:29:49 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-04-11 03:29:49 +0200 |
commit | 5bc8c005a8e15c43285bc595a8d404de67a482ac (patch) | |
tree | 98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /util-linux/umount.c | |
parent | 73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff) | |
download | busybox-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip busybox-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz |
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/umount.c')
-rw-r--r-- | util-linux/umount.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c index 5597d9e..1e576ca 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -7,6 +7,28 @@ * * Licensed under GPLv2, see file LICENSE in this source tree. */ + +//usage:#define umount_trivial_usage +//usage: "[OPTIONS] FILESYSTEM|DIRECTORY" +//usage:#define umount_full_usage "\n\n" +//usage: "Unmount file systems\n" +//usage: "\nOptions:" +//usage: IF_FEATURE_UMOUNT_ALL( +//usage: "\n -a Unmount all file systems" IF_FEATURE_MTAB_SUPPORT(" in /etc/mtab") +//usage: ) +//usage: IF_FEATURE_MTAB_SUPPORT( +//usage: "\n -n Don't erase /etc/mtab entries" +//usage: ) +//usage: "\n -r Try to remount devices as read-only if mount is busy" +//usage: "\n -l Lazy umount (detach filesystem)" +//usage: "\n -f Force umount (i.e., unreachable NFS server)" +//usage: IF_FEATURE_MOUNT_LOOP( +//usage: "\n -d Free loop device if it has been used" +//usage: ) +//usage: +//usage:#define umount_example_usage +//usage: "$ umount /dev/hdc1\n" + #include <mntent.h> #include <sys/mount.h> #include "libbb.h" |