Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2011 19:12:42 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221400 - head/sys/geom
Message-ID:  <201105031912.p43JCg5N007754@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue May  3 19:12:42 2011
New Revision: 221400
URL: http://svn.freebsd.org/changeset/base/221400

Log:
  Use make_dev_alias_p() added in r221397 to create alias dev entry.
  It removes panic in case if alias name is already busy for some reason.

Modified:
  head/sys/geom/geom_dev.c

Modified: head/sys/geom/geom_dev.c
==============================================================================
--- head/sys/geom/geom_dev.c	Tue May  3 18:57:46 2011	(r221399)
+++ head/sys/geom/geom_dev.c	Tue May  3 19:12:42 2011	(r221400)
@@ -148,7 +148,8 @@ g_dev_taste(struct g_class *mp, struct g
 			snprintf(buf, sizeof(buf), "%s%s",
 			    val, gp->name + len);
 			freeenv(val);
-			adev = make_dev_alias(dev, buf);
+			make_dev_alias_p(MAKEDEV_CHECKNAME | MAKEDEV_WAITOK,
+			    &adev, dev, "%s", buf);
 			break;
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105031912.p43JCg5N007754>