diff options
author | trasz <trasz@FreeBSD.org> | 2009-11-28 11:57:43 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2009-11-28 11:57:43 +0000 |
commit | 59762a5f5bfef6149d98565bba635d7810a3c0f7 (patch) | |
tree | 5af5a2172663b86e7261fefa106e24cc579c046f /sys/geom/label/g_label_reiserfs.c | |
parent | 369b56492362785761c5ba19d7fbeaa2cc733058 (diff) | |
download | FreeBSD-src-59762a5f5bfef6149d98565bba635d7810a3c0f7.zip FreeBSD-src-59762a5f5bfef6149d98565bba635d7810a3c0f7.tar.gz |
Provide a set of sysctls and tunables to disable device node creation
for specific "kinds" of disk labels - for example, GPT UUIDs. Reason
for this is that sometimes, other GEOM classes attach to these device
nodes instead of the proper ones - e.g. they attach to /dev/gptid/XXX
instead of /dev/ada0p2, which is annoying.
Reviewed by: pjd (earlier version)
MFC after: 1 month
Diffstat (limited to 'sys/geom/label/g_label_reiserfs.c')
-rw-r--r-- | sys/geom/label/g_label_reiserfs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/geom/label/g_label_reiserfs.c b/sys/geom/label/g_label_reiserfs.c index 18ce1ef..a912e97 100644 --- a/sys/geom/label/g_label_reiserfs.c +++ b/sys/geom/label/g_label_reiserfs.c @@ -111,7 +111,10 @@ exit_free: g_free(fs); } -const struct g_label_desc g_label_reiserfs = { +struct g_label_desc g_label_reiserfs = { .ld_taste = g_label_reiserfs_taste, - .ld_dir = "reiserfs" + .ld_dir = "reiserfs", + .ld_enabled = 1 }; + +G_LABEL_INIT(reiserfs, g_label_reiserfs, "Create device nodes for REISERFS volumes"); |