Date: Fri, 18 Mar 2016 13:30:40 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r297020 - stable/9/sbin/geom/core Message-ID: <201603181330.u2IDUefv047268@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603181330.u2IDUefv047268>