]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mountpoint: clarify that it works on files
authorDave Reisner <dreisner@archlinux.org>
Thu, 21 Aug 2014 16:16:57 +0000 (12:16 -0400)
committerKarel Zak <kzak@redhat.com>
Fri, 22 Aug 2014 06:14:29 +0000 (08:14 +0200)
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>
sys-utils/mountpoint.1

index 29c153cbf70c9e3b253ec424cd5c53b10049ab81..078ba2506fd5ce204819a1a52820fb3b081e42f8 100644 (file)
@@ -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>