summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-12-26 20:45:37 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-12-26 20:45:37 +0000
commitcd4b1352fa9693c340a290d4b19744246120becc (patch)
tree0d2506ca5c2fbdebe7068c40eee36151f8b048ab
parent2dab76f7d1ef200d033f1c47f27903962311b4c8 (diff)
Notes
-rw-r--r--sys/geom/geom_dev.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c
index 186b13682e5a..c258b861ee61 100644
--- a/sys/geom/geom_dev.c
+++ b/sys/geom/geom_dev.c
@@ -101,6 +101,13 @@ g_dev_print(void)
return (1);
}
+/*
+ * XXX: This is disgusting and wrong in every way imaginable: The only reason
+ * XXX: we have a clone function is because of the root-mount hack we currently
+ * XXX: employ. An improvment would be to unregister this cloner once we know
+ * XXX: we no longer need it. Ideally, root-fs would be mounted through DEVFS
+ * XXX: eliminating the need for this hack.
+ */
static void
g_dev_clone(void *arg __unused, char *name, int namelen __unused, dev_t *dev)
{
@@ -111,7 +118,6 @@ g_dev_clone(void *arg __unused, char *name, int namelen __unused, dev_t *dev)
g_waitidle();
- /* XXX: can I drop Giant here ??? */
/* g_topology_lock(); */
LIST_FOREACH(gp, &g_dev_class.geom, geom) {
if (strcmp(gp->name, name))