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();
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to