diff options
Diffstat (limited to 'sys-utils/mountpoint.1')
-rw-r--r-- | sys-utils/mountpoint.1 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sys-utils/mountpoint.1 b/sys-utils/mountpoint.1 new file mode 100644 index 000000000..be17c42dd --- /dev/null +++ b/sys-utils/mountpoint.1 @@ -0,0 +1,43 @@ +.\" -*- nroff -*- +.TH MOUNTPOINT 1 "June 2011" +.SH NAME +mountpoint \- see if a directory is a mountpoint +.SH SYNOPSIS +.B mountpoint +.RB [ \-q ] +.RB [ \-d ] +.I directory + +.B mountpoint +.RB \-x +.I device + +.SH DESCRIPTION +.B mountpoint +checks if the directory is mentioned in the /proc/self/mountinfo file. +.SH OPTIONS +.IP "\fB\-h, \-\-help\fP" +Print help and exit. +.IP "\fB\-q, \-\-quiet\fP" +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. +.SH EXIT STATUS +Zero if the directory is a mountpoint, non-zero if not. +.SH AUTHOR +.PP +Karel Zak <kzak@redhat.com> +.SH NOTES +.PP +The util-linux +.B mountpoint +implementation was written from scratch for libmount. The original version +for sysvinit suite was written by Miquel van Smoorenburg. +.SH SEE ALSO +.BR mount (8) +.SH AVAILABILITY +The mountpoint command is part of the util-linux package and is available from +ftp://ftp.kernel.org/pub/linux/utils/util-linux/. + |