summaryrefslogtreecommitdiffstats
path: root/sbin/geom
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2016-03-11 12:59:07 +0000
committermav <mav@FreeBSD.org>2016-03-11 12:59:07 +0000
commit3e5354d8c8b08bcae46d71b7bde6be0350cf1653 (patch)
tree17fd09da836d58db7f3b8aac9c746c94118656d2 /sbin/geom
parentef2ed17f02a0af84f0a43734e9a433a9ab080fa9 (diff)
downloadFreeBSD-src-3e5354d8c8b08bcae46d71b7bde6be0350cf1653.zip
FreeBSD-src-3e5354d8c8b08bcae46d71b7bde6be0350cf1653.tar.gz
Allow standard commands for "unknown" classes in RESCUE mode.
For example, it allows quite useful `geom disk list` command. MFC after: 1 week
Diffstat (limited to 'sbin/geom')
-rw-r--r--sbin/geom/core/geom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c
index 5d23d93..e0b77ba 100644
--- a/sbin/geom/core/geom.c
+++ b/sbin/geom/core/geom.c
@@ -635,8 +635,7 @@ get_class(int *argc, char ***argv)
} else if (!strcasecmp(class_name, "label")) {
version = &glabel_version;
class_commands = glabel_class_commands;
- } else
- errx(EXIT_FAILURE, "Invalid class name.");
+ }
#endif /* !STATIC_GEOM_CLASSES */
set_class_name();
OpenPOWER on IntegriCloud