summaryrefslogtreecommitdiffstats
path: root/sys-utils/mountpoint.1
diff options
context:
space:
mode:
authorBenno Schulenberg2014-07-16 23:09:50 +0200
committerKarel Zak2014-07-17 14:01:04 +0200
commitd179d01950df5902ca4bc2ef1589b666300518a3 (patch)
tree03d8404288a818b6425dd0d6f91c71c2a4bb41d0 /sys-utils/mountpoint.1
parentfstrim: avoid TOCTOU race (diff)
downloadkernel-qcow2-util-linux-d179d01950df5902ca4bc2ef1589b666300518a3.tar.gz
kernel-qcow2-util-linux-d179d01950df5902ca4bc2ef1589b666300518a3.tar.xz
kernel-qcow2-util-linux-d179d01950df5902ca4bc2ef1589b666300518a3.zip
docs: bring four more man pages closer to standard formatting
In the IPC man pages strictly adhere to the memory, queue, semaphore order, to reduce disorientation. And for 'ipcmk', the arguments for -M and -S and -p are not optional. Add --version for 'mountpoint'. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'sys-utils/mountpoint.1')
-rw-r--r--sys-utils/mountpoint.137
1 files changed, 23 insertions, 14 deletions
diff --git a/sys-utils/mountpoint.1 b/sys-utils/mountpoint.1
index 687462485..29c153cbf 100644
--- a/sys-utils/mountpoint.1
+++ b/sys-utils/mountpoint.1
@@ -1,29 +1,38 @@
.\" -*- nroff -*-
-.TH MOUNTPOINT 1 "June 2011" "util-linux" "User Commands"
+.TH MOUNTPOINT 1 "July 2014" "util-linux" "User Commands"
.SH NAME
mountpoint \- see if a directory is a mountpoint
.SH SYNOPSIS
.B mountpoint
-.RB [ \-q ]
-.RB [ \-d ]
+.RB [ \-d | \-q ]
.I directory
-
+.sp
.B mountpoint
-.RB \-x
+.B \-x
.I device
.SH DESCRIPTION
.B mountpoint
-checks if the directory is mentioned in the /proc/self/mountinfo file.
+checks whether the given
+.I directory
+is mentioned in the /proc/self/mountinfo file.
.SH OPTIONS
-.IP "\fB\-h, \-\-help\fP"
-Display help text and exit.
-.IP "\fB\-q, \-\-quiet\fP"
+.TP
+.BR \-d , " \-\-fs\-devno"
+Show the major/minor numbers of the device that is mounted on the given
+directory.
+.TP
+.BR \-q , " \-\-quiet"
Be quiet - don't print anything.
-.IP "\fB\-d, \-\-fs\-devno\fP"
-Print major/minor device number of the filesystem on stdout.
-.IP "\fB\-x, \-\-devno\fP"
-Print major/minor device number of the blockdevice on stdout.
+.TP
+.BR \-x , " \-\-devno"
+Show the major/minor numbers of the given blockdevice on standard output.
+.TP
+.BR \-V , " \-\-version"
+Display version information and exit.
+.TP
+.BR \-h , " \-\-help"
+Display help text and exit.
.SH EXIT STATUS
Zero if the directory is a mountpoint, non-zero if not.
.SH AUTHOR
@@ -36,7 +45,7 @@ enables debug output.
.PP
The util-linux
.B mountpoint
-implementation was written from scratch for libmount. The original version
+implementation was written from scratch for libmount. The original version
for sysvinit suite was written by Miquel van Smoorenburg.
.SH SEE ALSO