diff options
author | Karel Zak | 2012-02-24 23:03:22 +0100 |
---|---|---|
committer | Karel Zak | 2012-02-24 23:17:06 +0100 |
commit | 16b73aae8cb73df2974fd75c2a42ec3b92535851 (patch) | |
tree | 34e9477d286b5b5b18767e2dcee3209b7e7c66a2 /sys-utils/mount.8 | |
parent | libmount: canonicalize targets from fstab on mount -a (diff) | |
download | kernel-qcow2-util-linux-16b73aae8cb73df2974fd75c2a42ec3b92535851.tar.gz kernel-qcow2-util-linux-16b73aae8cb73df2974fd75c2a42ec3b92535851.tar.xz kernel-qcow2-util-linux-16b73aae8cb73df2974fd75c2a42ec3b92535851.zip |
mount: (new) cleanup mount -a return codes
New return codes:
0 : all mounted (or all ignored)
64 : some mounted, some failed
32 : all failed
Note that already mounted or ignored (filtered out by -t or -O)
filesystems don't affect the final return code.
The original mount(8) returns 0 instead of 64, so the situation
"some mounted, some failed" cannot be detected.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.8')
-rw-r--r-- | sys-utils/mount.8 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index f1cff7476..d18881b2c 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -2759,6 +2759,10 @@ mount failure .TP .BR 64 some mount succeeded +.RE + +The command mount -a returns 0 (all success), 32 (all failed) or 64 (some +failed, some success). .SH NOTES The syntax of external mount helpers is: |