Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2011 12:59:12 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221433 - head/sys/geom/label
Message-ID:  <201105041259.p44CxCfn050388@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Wed May  4 12:59:11 2011
New Revision: 221433
URL: http://svn.freebsd.org/changeset/base/221433

Log:
  When checking existence of providers skip those which are orphaned.
  
  PR:		kern/132273
  MFC after:	2 week

Modified:
  head/sys/geom/label/g_label.c

Modified: head/sys/geom/label/g_label.c
==============================================================================
--- head/sys/geom/label/g_label.c	Wed May  4 12:48:02 2011	(r221432)
+++ head/sys/geom/label/g_label.c	Wed May  4 12:59:11 2011	(r221433)
@@ -164,6 +164,8 @@ g_label_create(struct gctl_req *req, str
 		pp2 = LIST_FIRST(&gp->provider);
 		if (pp2 == NULL)
 			continue;
+		if ((pp2->flags & G_PF_ORPHAN) != 0)
+			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?201105041259.p44CxCfn050388>