From: Stanislav Brabec Date: Thu, 14 Jul 2016 13:28:58 +0000 (+0200) Subject: mount: Handle MNT_ERR_LOOPOVERLAP X-Git-Tag: v2.29-rc1~134^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41c9e5d366d22eeb6592ac330ab75e1e4b28acec;p=thirdparty%2Futil-linux.git mount: Handle MNT_ERR_LOOPOVERLAP Use warnx(), as there is no strerror() text associated with it. There is currently no easy way to report name and type of conflict. Signed-off-by: Stanislav Brabec --- diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 23856c171c..92526cf786 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -455,6 +455,9 @@ try_readonly: case -MNT_ERR_LOOPDEV: warn(_("%s: failed to setup loop device"), src); return MOUNT_EX_FAIL; + case -MNT_ERR_LOOPOVERLAP: + warnx(_("%s: overlapping loop device exists"), src); + return MOUNT_EX_FAIL; default: return handle_generic_errors(rc, _("%s: mount failed"), tgt ? tgt : src);