From 90e0342bbf04667c7e9377d0ec4d019ea15e41cd Mon Sep 17 00:00:00 2001 From: Mister Me Date: Thu, 7 Oct 2021 08:34:00 -0600 Subject: [PATCH] findmnt: (adoc) Added section stating exit code semantics 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 Signed-off-by: Karel Zak --- misc-utils/findmnt.8.adoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc-utils/findmnt.8.adoc b/misc-utils/findmnt.8.adoc index c457b28a3f..3a3461f030 100644 --- a/misc-utils/findmnt.8.adoc +++ b/misc-utils/findmnt.8.adoc @@ -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*=:: -- 2.47.2