From 3ac2794cbf7eb6ae76311701ac755fc39616c8ac Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 5 May 2016 09:27:55 -0700 Subject: OpenZFS 5669 - altroot not set in zpool create 5669 altroot not set in zpool create when specified with -o Reviewed by: Matthew Ahrens Reviewed by: George Wilson Approved by: Dan McDonald Ported-by: Brian Behlendorf OpenZFS-issue: https://www.illumos.org/issues/5669 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/c423721 Closes #4594 --- cmd/zpool/zpool_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd') diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index 0c48805d1..50a332c6f 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -919,6 +919,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) { -- cgit v1.2.3