svn commit: r296653 - head/sbin/geom/core
Alexander Motin
mav at FreeBSD.org
Fri Mar 11 12:59:08 UTC 2016
Author: mav
Date: Fri Mar 11 12:59:07 2016
New Revision: 296653
URL: https://svnweb.freebsd.org/changeset/base/296653
Log:
Allow standard commands for "unknown" classes in RESCUE mode.
For example, it allows quite useful `geom disk list` command.
MFC after: 1 week
Modified:
head/sbin/geom/core/geom.c
Modified: head/sbin/geom/core/geom.c
==============================================================================
--- head/sbin/geom/core/geom.c Fri Mar 11 11:51:38 2016 (r296652)
+++ head/sbin/geom/core/geom.c Fri Mar 11 12:59:07 2016 (r296653)
@@ -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();
More information about the svn-src-all
mailing list