]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: (adoc) Added section stating exit code semantics
authorMister Me <gdg@localhost.localdomain>
Thu, 7 Oct 2021 14:34:00 +0000 (08:34 -0600)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Oct 2021 08:07:16 +0000 (10:07 +0200)
per issue #1464:

    https://github.com/karelzak/util-linux/issues/1464

[kzak@redhat.com: - move the text from DESCRIPTION to EXIT STATUS section]

Signed-off-by: Glenn Golden <gdg@zplane.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt.8.adoc

index c457b28a3f97522fb211dc50deee5b90602d0bd2..3a3461f0309845878b0d5c5688e31b790a783b26 100644 (file)
@@ -172,6 +172,12 @@ Force *findmnt* to print more information (*--verify* only for now).
 *--vfs-all*::
 When used with *VFS-OPTIONS* column, print all VFS (fs-independent) flags. This option is designed for auditing purposes to list also default VFS kernel mount options which are normally not listed.
 
+== EXIT STATUS
+
+The exit value is 0 if there is something to display, or 1 on any error
+(for example if no filesystem is found based on the user's filter
+specification, or the device path or mountpoint does not exist).
+
 == ENVIRONMENT
 
 *LIBMOUNT_FSTAB*=<path>::