summaryrefslogtreecommitdiffstats
path: root/libmount/src/libmount.sym
diff options
context:
space:
mode:
authorKarel Zak2017-04-27 14:01:26 +0200
committerKarel Zak2017-04-27 14:10:23 +0200
commitea848180dd344ec2859b5ca329d9b1375ddde1ac (patch)
tree3891525fa351a694f83fc19d17c048d0771f0722 /libmount/src/libmount.sym
parentlibmount: support MS_RDONLY on write-protected devices (diff)
downloadkernel-qcow2-util-linux-ea848180dd344ec2859b5ca329d9b1375ddde1ac.tar.gz
kernel-qcow2-util-linux-ea848180dd344ec2859b5ca329d9b1375ddde1ac.tar.xz
kernel-qcow2-util-linux-ea848180dd344ec2859b5ca329d9b1375ddde1ac.zip
libmount: add mnt_context_get_excode()
It's pretty complex task to make mount(8) and umount(8) return code and generate error message. It seems better to do that in the libmount rather than force all library users to duplicate mount(8) mk_exit_code() functions. It also means that all the messages will be translated only once. Changes: * all error messages are printed by warn() * no more multi-line messages * all messages prefixed by mount target (mountpoint) * library provides mount(8) compatible MNT_EX_* codes Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1429531 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/libmount.sym')
-rw-r--r--libmount/src/libmount.sym1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmount/src/libmount.sym b/libmount/src/libmount.sym
index 354332b43..ca16cafa1 100644
--- a/libmount/src/libmount.sym
+++ b/libmount/src/libmount.sym
@@ -320,4 +320,5 @@ MOUNT_2.30 {
mnt_context_is_rwonly_mount;
mnt_context_forced_rdonly;
mnt_context_enable_rwonly_mount;
+ mnt_context_get_excode;
} MOUNT_2.28;