summaryrefslogtreecommitdiffstats
path: root/sys-utils/mountpoint.1
diff options
context:
space:
mode:
authorSami Kerola2019-08-02 20:39:05 +0200
committerSami Kerola2019-08-02 20:39:05 +0200
commit6d56251220954f4937c9fafbcdb427d4aa50d330 (patch)
treefae19fbb136d499e4a7bc1037a86c485847f5d7d /sys-utils/mountpoint.1
parentdmesg: fix output hex encoding (diff)
downloadkernel-qcow2-util-linux-6d56251220954f4937c9fafbcdb427d4aa50d330.tar.gz
kernel-qcow2-util-linux-6d56251220954f4937c9fafbcdb427d4aa50d330.tar.xz
kernel-qcow2-util-linux-6d56251220954f4937c9fafbcdb427d4aa50d330.zip
mountpoint: add --nofollow option
The no follow option will allow user to distinct mount points from symbolic links pointing to them. Arguably this is pretty pedantic option, mounting a device or bind mount to a directory via symlink does not have or cause any issues. Addresses: https://github.com/karelzak/util-linux/issues/832 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/mountpoint.1')
-rw-r--r--sys-utils/mountpoint.17
1 files changed, 6 insertions, 1 deletions
diff --git a/sys-utils/mountpoint.1 b/sys-utils/mountpoint.1
index afc469ebc..6669b13eb 100644
--- a/sys-utils/mountpoint.1
+++ b/sys-utils/mountpoint.1
@@ -1,4 +1,4 @@
-.TH MOUNTPOINT 1 "July 2014" "util-linux" "User Commands"
+.TH MOUNTPOINT 1 "August 2019" "util-linux" "User Commands"
.SH NAME
mountpoint \- see if a directory or file is a mountpoint
.SH SYNOPSIS
@@ -28,6 +28,11 @@ directory.
.BR \-q , " \-\-quiet"
Be quiet - don't print anything.
.TP
+.B "\-\-nofollow"
+Do not follow symbolic link if it the last elemnt of the
+.I directory
+path.
+.TP
.BR \-x , " \-\-devno"
Show the major/minor numbers of the given blockdevice on standard output.
.TP