From ea848180dd344ec2859b5ca329d9b1375ddde1ac Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 27 Apr 2017 14:01:26 +0200 Subject: 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 --- libmount/src/libmount.sym | 1 + 1 file changed, 1 insertion(+) (limited to 'libmount/src/libmount.sym') 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; -- cgit v1.2.3-55-g7522