summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2016-09-27 18:06:43 +0000
committermarkj <markj@FreeBSD.org>2016-09-27 18:06:43 +0000
commit71f3313e4975419065fd53a1c4cb6a135a94a686 (patch)
tree8e0bc00cdc97e060e3561ea8b1563b5804e21ad4 /sys/geom
parentf2e504b2d33f0b42d5b5b917ca2be10491c01be9 (diff)
downloadFreeBSD-src-71f3313e4975419065fd53a1c4cb6a135a94a686.zip
FreeBSD-src-71f3313e4975419065fd53a1c4cb6a135a94a686.tar.gz
MFC r305509:
Don't treat an error from g_mirror_clear_metadata() as fatal.
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/mirror/g_mirror.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c
index 1228079..e315f51 100644
--- a/sys/geom/mirror/g_mirror.c
+++ b/sys/geom/mirror/g_mirror.c
@@ -2663,8 +2663,12 @@ again:
int error;
error = g_mirror_clear_metadata(disk);
- if (error != 0)
- return (error);
+ if (error != 0) {
+ G_MIRROR_DEBUG(0,
+ "Device %s: failed to clear metadata on %s: %d.",
+ sc->sc_name, g_mirror_get_diskname(disk), error);
+ break;
+ }
DISK_STATE_CHANGED();
G_MIRROR_DEBUG(0, "Device %s: provider %s destroyed.",
sc->sc_name, g_mirror_get_diskname(disk));
OpenPOWER on IntegriCloud