diff options
author | delphij <delphij@FreeBSD.org> | 2008-03-05 23:31:49 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2008-03-05 23:31:49 +0000 |
commit | 2d536251f1014c4a5602ae7e7a336ed297b56421 (patch) | |
tree | a27d084c39846e2cfd0d757141ca68f6a56566e4 /sbin/geom/core | |
parent | 365714faf01db2ded25f8ecdc958a159aca06437 (diff) | |
download | FreeBSD-src-2d536251f1014c4a5602ae7e7a336ed297b56421.zip FreeBSD-src-2d536251f1014c4a5602ae7e7a336ed297b56421.tar.gz |
Make it possible to build glabel into rescue geom(8) utility.
Ok'ed by: marcel
No objection: -current@
Diffstat (limited to 'sbin/geom/core')
-rw-r--r-- | sbin/geom/core/geom.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c index 91fb2f2..8726e626 100644 --- a/sbin/geom/core/geom.c +++ b/sbin/geom/core/geom.c @@ -54,6 +54,8 @@ __FBSDID("$FreeBSD$"); #ifdef RESCUE extern uint32_t gpart_version; extern struct g_command gpart_class_commands[]; +extern uint32_t glabel_version; +extern struct g_command glabel_class_commands[]; #endif static char comm[MAXPATHLEN], *class_name = NULL, *gclass_name = NULL; @@ -604,6 +606,9 @@ get_class(int *argc, char ***argv) if (!strcasecmp(class_name, "part")) { version = &gpart_version; class_commands = gpart_class_commands; + } else if (!strcasecmp(class_name, "label")) { + version = &glabel_version; + class_commands = glabel_class_commands; } else errx(EXIT_FAILURE, "Invalid class name."); #endif /* !RESCUE */ |