]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libmount/docs/libmount-sections.txt
libmount: add mnt_context_get_excode()
authorKarel Zak <kzak@redhat.com>
Thu, 27 Apr 2017 12:01:26 +0000 (14:01 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Apr 2017 12:10:23 +0000 (14:10 +0200)
commitea848180dd344ec2859b5ca329d9b1375ddde1ac
tree3891525fa351a694f83fc19d17c048d0771f0722
parent6dede2f2f7c5271b95c0361abd647af2a731b1dc
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>
libmount/docs/libmount-sections.txt
libmount/src/context.c
libmount/src/context_mount.c
libmount/src/context_umount.c
libmount/src/libmount.h.in
libmount/src/libmount.sym
libmount/src/mountP.h