diff options
author | delphij <delphij@FreeBSD.org> | 2015-03-13 01:18:46 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2015-03-13 01:18:46 +0000 |
commit | 7c0c64012edfc7006a0b177575a2b88123c41662 (patch) | |
tree | f49dd642da32259a49523a48b848d8f87397ce4e /cddl/contrib | |
parent | 3dbd30e10220aee40a58d35fa3a202436ae188de (diff) | |
download | FreeBSD-src-7c0c64012edfc7006a0b177575a2b88123c41662.zip FreeBSD-src-7c0c64012edfc7006a0b177575a2b88123c41662.tar.gz |
MFC r279366:
Set altroot if the user have specified it via -o altroot.
Diffstat (limited to 'cddl/contrib')
-rw-r--r-- | cddl/contrib/opensolaris/cmd/zpool/zpool_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c b/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c index 2985d0f..d8243f3 100644 --- a/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c +++ b/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c @@ -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) { |