svn commit: r297020 - stable/9/sbin/geom/core

Alexander Motin mav at FreeBSD.org
Fri Mar 18 13:30:41 UTC 2016


Author: mav
Date: Fri Mar 18 13:30:40 2016
New Revision: 297020
URL: https://svnweb.freebsd.org/changeset/base/297020

Log:
  MFC r296653: Allow standard commands for "unknown" classes in RESCUE mode.
  
  For example, it allows quite useful `geom disk list` command.

Modified:
  stable/9/sbin/geom/core/geom.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/sbin/   (props changed)
  stable/9/sbin/geom/   (props changed)

Modified: stable/9/sbin/geom/core/geom.c
==============================================================================
--- stable/9/sbin/geom/core/geom.c	Fri Mar 18 13:29:43 2016	(r297019)
+++ stable/9/sbin/geom/core/geom.c	Fri Mar 18 13:30:40 2016	(r297020)
@@ -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-stable-9 mailing list