Date: Fri, 18 Mar 2016 13:29:43 +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-10@freebsd.org Subject: svn commit: r297019 - stable/10/sbin/geom/core Message-ID: <201603181329.u2IDTh8v047154@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Fri Mar 18 13:29:43 2016 New Revision: 297019 URL: https://svnweb.freebsd.org/changeset/base/297019 Log: MFC r296653: Allow standard commands for "unknown" classes in RESCUE mode. For example, it allows quite useful `geom disk list` command. Modified: stable/10/sbin/geom/core/geom.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sbin/geom/core/geom.c ============================================================================== --- stable/10/sbin/geom/core/geom.c Fri Mar 18 13:26:16 2016 (r297018) +++ stable/10/sbin/geom/core/geom.c Fri Mar 18 13:29:43 2016 (r297019) @@ -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?201603181329.u2IDTh8v047154>