Skip to content

Commit 3ac2794

Browse files
committed
OpenZFS 5669 - altroot not set in zpool create
5669 altroot not set in zpool create when specified with -o Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: George Wilson <george@delphix.com> Approved by: Dan McDonald <danmcd@omniti.com> Ported-by: Brian Behlendorf <behlendorf1@llnl.gov> OpenZFS-issue: https://www.illumos.org/issues/5669 OpenZFS-commit: openzfs/openzfs@c423721 Closes #4594
1 parent 498056a commit 3ac2794

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/zpool/zpool_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,8 @@ zpool_do_create(int argc, char **argv)
919919
enable_all_pool_feat = B_FALSE;
920920
}
921921
}
922+
if (zpool_name_to_prop(optarg) == ZPOOL_PROP_ALTROOT)
923+
altroot = propval;
922924
break;
923925
case 'O':
924926
if ((propval = strchr(optarg, '=')) == NULL) {

0 commit comments

Comments
 (0)