Date: Fri, 13 Mar 2015 01:18:47 +0000 (UTC) From: Xin LI <delphij@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: r279942 - stable/10/cddl/contrib/opensolaris/cmd/zpool Message-ID: <201503130118.t2D1IlMR042474@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Fri Mar 13 01:18:46 2015 New Revision: 279942 URL: https://svnweb.freebsd.org/changeset/base/279942 Log: MFC r279366: Set altroot if the user have specified it via -o altroot. Modified: stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c Directory Properties: stable/10/ (props changed) Modified: stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c ============================================================================== --- stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c Fri Mar 13 01:16:14 2015 (r279941) +++ stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c Fri Mar 13 01:18:46 2015 (r279942) @@ -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?201503130118.t2D1IlMR042474>