* [PATCH 3/7] mount: Handle MNT_ERR_LOOPOVERLAP
@ 2016-07-14 13:28 Stanislav Brabec
0 siblings, 0 replies; only message in thread
From: Stanislav Brabec @ 2016-07-14 13:28 UTC (permalink / raw)
To: util-linux
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 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index 23856c1..92526cf 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);
--
2.9.0
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@suse.com
Křižíkova 148/34 (Corso IIa) tel: +49 911 7405384547
186 00 Praha 8-Karlín fax: +420 284 084 001
Czech Republic http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-14 13:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-14 13:28 [PATCH 3/7] mount: Handle MNT_ERR_LOOPOVERLAP Stanislav Brabec
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.