Date: Tue, 27 Sep 2016 18:07:22 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r306374 - stable/10/sys/geom/mirror Message-ID: <201609271807.u8RI7M2M024005@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Tue Sep 27 18:07:22 2016 New Revision: 306374 URL: https://svnweb.freebsd.org/changeset/base/306374 Log: MFC r305509: Don't treat an error from g_mirror_clear_metadata() as fatal. Modified: stable/10/sys/geom/mirror/g_mirror.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/geom/mirror/g_mirror.c ============================================================================== --- stable/10/sys/geom/mirror/g_mirror.c Tue Sep 27 18:06:43 2016 (r306373) +++ stable/10/sys/geom/mirror/g_mirror.c Tue Sep 27 18:07:22 2016 (r306374) @@ -2669,8 +2669,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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609271807.u8RI7M2M024005>