summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-08-20 17:05:47 +0000
committerpjd <pjd@FreeBSD.org>2005-08-20 17:05:47 +0000
commit114d28e6a7513fcb894dd30c27562c75dfbd3675 (patch)
tree7fef3f1edbfff099690b02203b3b2db02bde1c27 /sys/geom
parentd3d084c7ccf7e8a7827e5530641bf9335d33eedc (diff)
downloadFreeBSD-src-114d28e6a7513fcb894dd30c27562c75dfbd3675.zip
FreeBSD-src-114d28e6a7513fcb894dd30c27562c75dfbd3675.tar.gz
Back-out the change from revision 1.14 and allow for '/' in labels again.
Convinced by: green, Gavin Atkinson, dougb, gordon MFC after: 1 day
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/label/g_label.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/geom/label/g_label.c b/sys/geom/label/g_label.c
index 1f49d0b..f04a4b5 100644
--- a/sys/geom/label/g_label.c
+++ b/sys/geom/label/g_label.c
@@ -263,20 +263,12 @@ g_label_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
} while (0);
for (i = 0; g_labels[i] != NULL; i++) {
char label[64];
- char *p;
g_topology_unlock();
g_labels[i]->ld_taste(cp, label, sizeof(label));
g_topology_lock();
if (label[0] == '\0')
continue;
- /*
- * Don't allow / in labels.
- */
- for (p = label; *p != '\0'; p++) {
- if (*p == '/')
- *p = '_';
- }
g_label_create(NULL, mp, pp, label, g_labels[i]->ld_dir,
pp->mediasize);
}
OpenPOWER on IntegriCloud