Date: Tue, 3 Mar 2009 15:40:04 GMT From: Nick Sayer <nsayer@kfu.com> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/132273: glabel failing on journaled partition Message-ID: <200903031540.n23Fe4YJ086521@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/132273; it has been noted by GNATS. From: Nick Sayer <nsayer@kfu.com> To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/132273: glabel failing on journaled partition Date: Tue, 3 Mar 2009 07:38:58 -0800 I haven't yet tried this, and I am not a geom internals expert, but might this be the fix? --- sys/geom/label/g_label.c.orig 2008-12-28 14:45:10.000000000 -0800 +++ sys/geom/label/g_label.c 2009-03-03 07:36:57.000000000 -0800 @@ -158,6 +158,8 @@ pp2 = LIST_FIRST(&gp->provider); if (pp2 == NULL) continue; + if (pp2->flags & G_PF_ORPHAN) + continue; if (strcmp(pp2->name, name) == 0) { G_LABEL_DEBUG(1, "Label %s(%s) already exists (%s).", label, name, pp->name);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903031540.n23Fe4YJ086521>