kern/132273: glabel failing on journaled partition
Nick Sayer
nsayer at kfu.com
Tue Mar 3 07:40:04 PST 2009
The following reply was made to PR kern/132273; it has been noted by GNATS.
From: Nick Sayer <nsayer at kfu.com>
To: bug-followup at 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);
More information about the freebsd-bugs
mailing list