summaryrefslogtreecommitdiffstats
path: root/libmount/src/libmount.h.in
diff options
context:
space:
mode:
authorStanislav Brabec2016-07-14 15:28:45 +0200
committerKarel Zak2016-08-03 11:53:28 +0200
commit7e6b7035e7bd5dd82bf4fc95494df3552e80a8f1 (patch)
tree24a48f58787100d19b2a85726835a591372af4ca /libmount/src/libmount.h.in
parentlibmount: Fix possible crash in mnt_context_setup_loopdev() (diff)
downloadkernel-qcow2-util-linux-7e6b7035e7bd5dd82bf4fc95494df3552e80a8f1.tar.gz
kernel-qcow2-util-linux-7e6b7035e7bd5dd82bf4fc95494df3552e80a8f1.tar.xz
kernel-qcow2-util-linux-7e6b7035e7bd5dd82bf4fc95494df3552e80a8f1.zip
libmount: Introduce new error: MNT_ERR_LOOPOVERLAP
This error code is intended for situations where overlapping loop device exists and cannot be reused. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Diffstat (limited to 'libmount/src/libmount.h.in')
-rw-r--r--libmount/src/libmount.h.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in
index cadf4a72d..83f05efd2 100644
--- a/libmount/src/libmount.h.in
+++ b/libmount/src/libmount.h.in
@@ -159,7 +159,7 @@ enum {
*
* loopdev setup failed, errno set by libc
*/
-#define MNT_ERR_LOOPDEV 5003
+#define MNT_ERR_LOOPDEV 5003
/**
* MNT_ERR_MOUNTOPT:
*
@@ -178,6 +178,12 @@ enum {
* libblkid detected more filesystems on the device
*/
#define MNT_ERR_AMBIFS 5006
+/**
+ * MNT_ERR_LOOPOVERLAP:
+ *
+ * detected overlapping loop device that cannot be re-used
+ */
+#define MNT_ERR_LOOPOVERLAP 5007
#ifndef __GNUC_PREREQ
# if defined __GNUC__ && defined __GNUC_MINOR__