Date: Fri, 27 Feb 2015 19:13:14 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279366 - head/cddl/contrib/opensolaris/cmd/zpool Message-ID: <201502271913.t1RJDEjH048590@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Fri Feb 27 19:13:13 2015 New Revision: 279366 URL: https://svnweb.freebsd.org/changeset/base/279366 Log: Set altroot if the user have specified it via -o altroot. MFC after: 2 weeks Modified: head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c Modified: head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c ============================================================================== --- head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c Fri Feb 27 19:12:35 2015 (r279365) +++ head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c Fri Feb 27 19:13:13 2015 (r279366) @@ -834,6 +834,8 @@ zpool_do_create(int argc, char **argv) enable_all_pool_feat = B_FALSE; } } + if (zpool_name_to_prop(optarg) == ZPOOL_PROP_ALTROOT) + altroot = propval; break; case 'O': if ((propval = strchr(optarg, '=')) == NULL) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502271913.t1RJDEjH048590>