Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
*** 10,20 ****
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
! # Copyright (c) 2014 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
. $STF_SUITE/tests/functional/rsend/rsend.kshlib
--- 10,20 ----
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
! # Copyright (c) 2014, 2016 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
. $STF_SUITE/tests/functional/rsend/rsend.kshlib
*** 31,55 ****
verify_runnable "both"
log_assert "zfs send will work on filesystems and volumes in a read-only pool."
log_onexit cleanup_pool $POOL2
! log_must eval "$ZPOOL export $POOL"
! log_must eval "$ZPOOL import -o readonly=on $POOL"
! log_must eval "$ZFS send -R $POOL@final > $BACKDIR/pool-final-R"
! log_must eval "$ZFS receive -d -F $POOL2 < $BACKDIR/pool-final-R"
dstds=$(get_dst_ds $POOL $POOL2)
log_must cmp_ds_subs $POOL $dstds
log_must cmp_ds_cont $POOL $dstds
log_must cleanup_pool $POOL2
! log_must eval "$ZFS send -R $POOL/$FS@final > $BACKDIR/fs-final-R"
! log_must eval "$ZFS receive -d $POOL2 < $BACKDIR/fs-final-R"
! log_must eval "$ZPOOL export $POOL"
! log_must eval "$ZPOOL import $POOL"
dstds=$(get_dst_ds $POOL/$FS $POOL2)
log_must cmp_ds_subs $POOL/$FS $dstds
log_must cmp_ds_cont $POOL/$FS $dstds
--- 31,55 ----
verify_runnable "both"
log_assert "zfs send will work on filesystems and volumes in a read-only pool."
log_onexit cleanup_pool $POOL2
! log_must eval "zpool export $POOL"
! log_must eval "zpool import -o readonly=on $POOL"
! log_must eval "zfs send -R $POOL@final > $BACKDIR/pool-final-R"
! log_must eval "zfs receive -d -F $POOL2 < $BACKDIR/pool-final-R"
dstds=$(get_dst_ds $POOL $POOL2)
log_must cmp_ds_subs $POOL $dstds
log_must cmp_ds_cont $POOL $dstds
log_must cleanup_pool $POOL2
! log_must eval "zfs send -R $POOL/$FS@final > $BACKDIR/fs-final-R"
! log_must eval "zfs receive -d $POOL2 < $BACKDIR/fs-final-R"
! log_must eval "zpool export $POOL"
! log_must eval "zpool import $POOL"
dstds=$(get_dst_ds $POOL/$FS $POOL2)
log_must cmp_ds_subs $POOL/$FS $dstds
log_must cmp_ds_cont $POOL/$FS $dstds