File util-linux-loop-reuse-02.patch of Package util-linux.7828
From 7e6b7035e7bd5dd82bf4fc95494df3552e80a8f1 Mon Sep 17 00:00:00 2001
From: Stanislav Brabec <sbrabec@suse.cz>
Date: Thu, 14 Jul 2016 15:28:45 +0200
Subject: [PATCH 2/20] 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>
---
libmount/src/libmount.h.in | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in
index cadf4a7..83f05ef 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__
--
2.9.2