From 7e6b7035e7bd5dd82bf4fc95494df3552e80a8f1 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Thu, 14 Jul 2016 15:28:45 +0200 Subject: 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 --- libmount/src/libmount.h.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libmount/src/libmount.h.in') 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__ -- cgit v1.2.3-55-g7522