]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: Introduce new error: MNT_ERR_LOOPOVERLAP
authorStanislav Brabec <sbrabec@suse.cz>
Thu, 14 Jul 2016 13:28:45 +0000 (15:28 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Aug 2016 09:53:28 +0000 (11:53 +0200)
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

index cadf4a72db72c90d8ca3cf5af4e74a489f586a89..83f05efd25cfe0bfd53d8cf8d1d8ac6e33968e7e 100644 (file)
@@ -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__