aboutsummaryrefslogtreecommitdiff
path: root/util-linux/umount.c
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-04-11 03:29:49 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-04-11 03:29:49 +0200
commit5bc8c005a8e15c43285bc595a8d404de67a482ac (patch)
tree98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /util-linux/umount.c
parent73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff)
downloadbusybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz
busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.bz2
busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip
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.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 5597d9eba..1e576ca4e 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -7,6 +7,28 @@
7 * 7 *
8 * Licensed under GPLv2, see file LICENSE in this source tree. 8 * Licensed under GPLv2, see file LICENSE in this source tree.
9 */ 9 */
10
11//usage:#define umount_trivial_usage
12//usage: "[OPTIONS] FILESYSTEM|DIRECTORY"
13//usage:#define umount_full_usage "\n\n"
14//usage: "Unmount file systems\n"
15//usage: "\nOptions:"
16//usage: IF_FEATURE_UMOUNT_ALL(
17//usage: "\n -a Unmount all file systems" IF_FEATURE_MTAB_SUPPORT(" in /etc/mtab")
18//usage: )
19//usage: IF_FEATURE_MTAB_SUPPORT(
20//usage: "\n -n Don't erase /etc/mtab entries"
21//usage: )
22//usage: "\n -r Try to remount devices as read-only if mount is busy"
23//usage: "\n -l Lazy umount (detach filesystem)"
24//usage: "\n -f Force umount (i.e., unreachable NFS server)"
25//usage: IF_FEATURE_MOUNT_LOOP(
26//usage: "\n -d Free loop device if it has been used"
27//usage: )
28//usage:
29//usage:#define umount_example_usage
30//usage: "$ umount /dev/hdc1\n"
31
10#include <mntent.h> 32#include <mntent.h>
11#include <sys/mount.h> 33#include <sys/mount.h>
12#include "libbb.h" 34#include "libbb.h"