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

index 23856c171c769c519a6490334630748a2733f177..92526cf78687c74a411bec229e7a3fc6b4fd585e 100644 (file)
@@ -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);