Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2011 16:07:24 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r222064 - stable/8/sys/geom/label
Message-ID:  <201105181607.p4IG7O9q098800@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Wed May 18 16:07:24 2011
New Revision: 222064
URL: http://svn.freebsd.org/changeset/base/222064

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

Modified:
  stable/8/sys/geom/label/g_label.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/geom/label/g_label.c
==============================================================================
--- stable/8/sys/geom/label/g_label.c	Wed May 18 16:01:29 2011	(r222063)
+++ stable/8/sys/geom/label/g_label.c	Wed May 18 16:07:24 2011	(r222064)
@@ -162,6 +162,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?201105181607.p4IG7O9q098800>