]>
Commit | Line | Data |
---|---|---|
0164c245 KZ |
1 | .\" -*- nroff -*- |
2 | .TH MOUNTPOINT 1 "June 2011" | |
3 | .SH NAME | |
4 | mountpoint \- see if a directory is a mountpoint | |
5 | .SH SYNOPSIS | |
6 | .B mountpoint | |
7 | .RB [ \-q ] | |
8 | .RB [ \-d ] | |
9 | .I directory | |
10 | ||
11 | .B mountpoint | |
12 | .RB \-x | |
13 | .I device | |
14 | ||
15 | .SH DESCRIPTION | |
16 | .B mountpoint | |
17 | checks if the directory is mentioned in the /proc/self/mountinfo file. | |
18 | .SH OPTIONS | |
19 | .IP "\fB\-h, \-\-help\fP" | |
20 | Print help and exit. | |
21 | .IP "\fB\-q, \-\-quiet\fP" | |
22 | Be quiet - don't print anything. | |
23 | .IP "\fB\-d, \-\-fs\-devno\fP" | |
24 | Print major/minor device number of the filesystem on stdout. | |
25 | .IP "\fB\-x, \-\-devno\fP" | |
26 | Print major/minor device number of the blockdevice on stdout. | |
27 | .SH EXIT STATUS | |
28 | Zero if the directory is a mountpoint, non-zero if not. | |
29 | .SH AUTHOR | |
30 | .PP | |
31 | Karel Zak <kzak@redhat.com> | |
32 | .SH NOTES | |
33 | .PP | |
34 | The util-linux | |
35 | .B mountpoint | |
36 | implementation was written from scratch for libmount. The original version | |
37 | for sysvinit suite was written by Miquel van Smoorenburg. | |
38 | .SH SEE ALSO | |
39 | .BR mount (8) | |
40 | .SH AVAILABILITY | |
41 | The mountpoint command is part of the util-linux package and is available from | |
42 | ftp://ftp.kernel.org/pub/linux/utils/util-linux/. | |
43 |