summaryrefslogtreecommitdiffstats
path: root/sys-utils/mountpoint.1
diff options
context:
space:
mode:
authorDave Reisner2014-08-21 18:16:57 +0200
committerKarel Zak2014-08-22 08:14:29 +0200
commit44e9d52e52f3aa9bb08c0e8b195fefccf1d2f922 (patch)
treed84b2321049922fabc6b96a46cbc8e3923ef450c /sys-utils/mountpoint.1
parentmountpoint: drop S_ISDIR check (diff)
downloadkernel-qcow2-util-linux-44e9d52e52f3aa9bb08c0e8b195fefccf1d2f922.tar.gz
kernel-qcow2-util-linux-44e9d52e52f3aa9bb08c0e8b195fefccf1d2f922.tar.xz
kernel-qcow2-util-linux-44e9d52e52f3aa9bb08c0e8b195fefccf1d2f922.zip
mountpoint: clarify that it works on files
fef4dfa174 removed the restriction that the argument must explicitly be a directory, so let's fix up the documentation to reflect that. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mountpoint.1')
-rw-r--r--sys-utils/mountpoint.18
1 files changed, 6 insertions, 2 deletions
diff --git a/sys-utils/mountpoint.1 b/sys-utils/mountpoint.1
index 29c153cbf..078ba2506 100644
--- a/sys-utils/mountpoint.1
+++ b/sys-utils/mountpoint.1
@@ -1,11 +1,13 @@
.\" -*- nroff -*-
.TH MOUNTPOINT 1 "July 2014" "util-linux" "User Commands"
.SH NAME
-mountpoint \- see if a directory is a mountpoint
+mountpoint \- see if a directory or file is a mountpoint
.SH SYNOPSIS
.B mountpoint
.RB [ \-d | \-q ]
.I directory
+|
+.I file
.sp
.B mountpoint
.B \-x
@@ -15,6 +17,8 @@ mountpoint \- see if a directory is a mountpoint
.B mountpoint
checks whether the given
.I directory
+or
+.I file
is mentioned in the /proc/self/mountinfo file.
.SH OPTIONS
.TP
@@ -34,7 +38,7 @@ Display version information and exit.
.BR \-h , " \-\-help"
Display help text and exit.
.SH EXIT STATUS
-Zero if the directory is a mountpoint, non-zero if not.
+Zero if the directory or file is a mountpoint, non-zero if not.
.SH AUTHOR
.PP
Karel Zak <kzak@redhat.com>