commit f58c4312a435b298570db4331d69cc8102e7fd81
Author: sin <[email protected]>
Date:   Sun Apr 13 16:28:08 2014 +0100

    Add umount manpage and fix umount usage

diff --git a/umount.8 b/umount.8
new file mode 100644
index 0000000..0b3afdb
--- /dev/null
+++ b/umount.8
@@ -0,0 +1,28 @@
+.TH UMOUNT 8 ubase-VERSION
+.SH NAME
+BumountR - Unmount file systems
+.SH SYNOPSIS
+BumountR [B-lfnR] Itarget...R
+.TP
+BumountR B-aR [B-lfnR]
+.SH DESCRIPTION
+BumountR detaches the ItargetR filesystem(s).
+A file system is specified by giving the directory where it
+has been mounted.  Giving the special device on which the file system
+lives may also work, but is obsolete, mainly because it  will fail in
+case this device was mounted on more than one directory.
+.SH OPTIONS
+.TP
+B-lR
+Lazy unmount.  Detach the filesystem from the fs hierarchy now, and cleanup
+all references to the filesystem as soon as it is not busy anymore.
+.TP
+B-fR
+Force unmount (in case of an unreachable NFS server).
+.TP
+B-nR
+Unmount without writing in /etc/mtab.  This is the default action.
+.TP
+B-aR
+All of the file systems described in /proc/mounts are unmounted.  The
+proc filesystem is not unmounted.
diff --git a/umount.c b/umount.c
index 3650709..485417c 100644
--- a/umount.c
+++ b/umount.c
@@ -11,7 +11,7 @@ static int umountall(int);
 static void
 usage(void)
 {
-       weprintf("usage: %s [-lfn] target
", argv0);
+       weprintf("usage: %s [-lfn] target...
", argv0);
        weprintf("usage: %s -a [-lfn]
", argv0);
        exit(EXIT_FAILURE);
 }


Reply via email to