]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: add human compatible message for EBADMSG errno
authorKarel Zak <kzak@redhat.com>
Mon, 2 Oct 2017 11:44:29 +0000 (13:44 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 2 Oct 2017 11:44:29 +0000 (13:44 +0200)
commite8365fc1c68a28a8df0d5df3b03fa0eda05b05bc
treee503766042ab54b24f866ddc5e3c9cd5e391ad20
parent946eb86a47eba5f682cd6e3b700786ce94116b46
libmount: add human compatible message for EBADMSG errno

 mount: /media/sdb5: mount(2) system call failed: Bad message.

is really ugly for end users. It seems XFS, extN (etc) use EBADMSG for
bad checksums. For network or pseudo filesystems continue to use "Bad
message" error...

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1496764
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c