]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mount: (new) cleanup mount -a return codes
authorKarel Zak <kzak@redhat.com>
Fri, 24 Feb 2012 22:03:22 +0000 (23:03 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Feb 2012 22:17:06 +0000 (23:17 +0100)
commit16b73aae8cb73df2974fd75c2a42ec3b92535851
tree34e9477d286b5b5b18767e2dcee3209b7e7c66a2
parent6eba938376c2c870d9258ef9d7b6a3690cfa78dd
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>
sys-utils/mount.8
sys-utils/mount.c