/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_008_pos.ksh | 53 log_must zpool import $TESTPOOL 57 if poolexists $TESTPOOL ; then 58 destroy_pool $TESTPOOL 68 create_pool $TESTPOOL $disk 69 destroy_pool $TESTPOOL 124 create_pool $TESTPOOL $disk 125 destroy_pool $TESTPOOL 134 destroy_pool $TESTPOOL 138 log_must zpool create -f $TESTPOOL $disk 139 destroy_pool $TESTPOOL [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unmount/ |
H A D | zfs_unmount_009_pos.ksh | 56 for fs in $TESTPOOL/$TESTFS $TESTPOOL ; do 63 if ! poolexists $TESTPOOL && is_global_zone; then 64 log_must zpool create $TESTPOOL $DISK 67 if ! datasetexists $TESTPOOL/$TESTFS; then 68 log_must zfs create $TESTPOOL/$TESTFS 75 if ! datasetexists $TESTPOOL/$TESTFS ; then 76 log_must zfs create $TESTPOOL/$TESTFS 80 log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP 89 for fs in $TESTPOOL/$TESTFS $TESTPOOL ; do 107 if is_global_zone || [[ $fs != $TESTPOOL ]] ; then [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unload-key/ |
H A D | zfs_unload-key.ksh | 45 datasetexists $TESTPOOL/$TESTFS1 && \ 46 log_must zfs destroy $TESTPOOL/$TESTFS1 53 log_mustnot zfs unload-key $TESTPOOL/$TESTFS 55 log_must zfs unmount $TESTPOOL/$TESTFS 56 log_mustnot zfs unload-key $TESTPOOL/$TESTFS 60 log_mustnot zfs unload-key $TESTPOOL/$TESTFS1 61 log_must key_available $TESTPOOL/$TESTFS1 63 log_must zfs unmount $TESTPOOL/$TESTFS1 64 log_must zfs unload-key $TESTPOOL/$TESTFS1 65 log_must key_unavailable $TESTPOOL/$TESTFS1 [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/synctask_core/ |
H A D | tst.list_children.ksh | 28 TESTCHILD=$TESTPOOL/$TESTFS/testchild 44 log_must_program $TESTPOOL - <<-EOF 53 log_must_program $TESTPOOL - <<-EOF 56 assert(s == "$TESTPOOL/$TESTFS") 66 log_must_program $TESTPOOL - <<-EOF 81 log_must_program $TESTPOOL - <<-EOF 102 log_mustnot_program $TESTPOOL - <<-EOF 103 zfs.list.children("$TESTPOOL/not-a-fs") 107 log_mustnot_program $TESTPOOL - <<-EOF 113 log_mustnot_program $TESTPOOL - <<-EOF [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/ |
H A D | readonly_001_pos.ksh | 49 for dataset in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL ; do 134 log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP 135 log_must zfs clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE 138 log_must zfs snapshot $TESTPOOL/$TESTVOL@$TESTSNAP 139 log_must zfs clone $TESTPOOL/$TESTVOL@$TESTSNAP $TESTPOOL/$TESTCLONE1 140 all_datasets="$TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL " 141 all_datasets+="$TESTPOOL/$TESTCLONE $TESTPOOL/$TESTCLONE1" 143 all_datasets="$TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTCLONE"
|
H A D | mountpoint_001_pos.ksh | 53 "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR" "$TESTPOOL/$TESTVOL" 55 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR" 62 log_must zfs set mountpoint=$old_ctr_mpt $TESTPOOL/$TESTCTR 63 log_must zfs set mountpoint=$old_fs_mpt $TESTPOOL/$TESTFS 71 old_fs_mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS) 73 log_fail "Get the $TESTPOOL/$TESTFS mountpoint error." 74 old_ctr_mpt=$(get_prop mountpoint $TESTPOOL/$TESTCTR) 76 log_fail "Get the $TESTPOOL/$TESTCTR mountpoint error." 87 if [[ ${dataset[i]} == "$TESTPOOL/$TESTVOL" ]]; then
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_clone/ |
H A D | zfs_clone_001_neg.ksh | 58 typeset target1=$TESTPOOL/$TESTFS1 59 typeset target2=$TESTPOOL/$TESTCTR1/$TESTFS1 63 "$TESTPOOL/$TESTFS@blah $target1" "$TESTPOOL/$TESTVOL@blah $target1" \ 64 "$TESTPOOL/$TESTFS@blah* $target1" "$TESTPOOL/$TESTVOL@blah* $target1" \ 67 "$SNAPFS $TESTPOOL//$TESTFS1" "$SNAPFS1 $TESTPOOL//$TESTFS1" \ 81 "$SNAPFS $TESTPOOL" "$SNAPFS1 $TESTPOOL" \ 82 "$SNAPFS $TESTPOOL/$TESTCTR" "$SNAPFS $TESTPOOL/$TESTFS" \ 83 "$SNAPFS1 $TESTPOOL/$TESTCTR" "$SNAPFS1 $TESTPOOL/$TESTFS"
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unshare/ |
H A D | zfs_unshare_002_pos.ksh | 57 if mounted $TESTPOOL/$TESTCLONE; then 64 if datasetexists "$TESTPOOL/$TESTCLONE"; then 65 log_must zfs destroy -f $TESTPOOL/$TESTCLONE 68 if snapexists "$TESTPOOL/$TESTFS2@snapshot"; then 72 if datasetexists "$TESTPOOL/$TESTFS2"; then 73 log_must zfs destroy -f $TESTPOOL/$TESTFS2 115 "$TESTDIR" "$TESTPOOL/$TESTFS" \ 116 "$TESTDIR1" "$TESTPOOL/$TESTCTR/$TESTFS1" \ 117 "$TESTDIR2" "$TESTPOOL/$TESTCLONE" 122 log_must zfs create $TESTPOOL/$TESTFS2 [all …]
|
H A D | zfs_unshare_001_pos.ksh | 58 if mounted $TESTPOOL/$TESTCLONE; then 65 if datasetexists "$TESTPOOL/$TESTCLONE"; then 66 log_must zfs destroy -f $TESTPOOL/$TESTCLONE 69 if snapexists "$TESTPOOL/$TESTFS2@snapshot"; then 73 if datasetexists "$TESTPOOL/$TESTFS2"; then 74 log_must zfs destroy -f $TESTPOOL/$TESTFS2 121 "$TESTDIR" "$TESTPOOL/$TESTFS" \ 122 "$TESTDIR1" "$TESTPOOL/$TESTCTR/$TESTFS1" \ 123 "$TESTDIR2" "$TESTPOOL/$TESTCLONE" 128 log_must zfs create $TESTPOOL/$TESTFS2 [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_create/ |
H A D | zfs_create_006_pos.ksh | 52 datasetexists $TESTPOOL/$TESTVOL1 && \ 53 log_must zfs destroy -f $TESTPOOL/$TESTVOL1 65 $TESTPOOL/$TESTVOL1 66 datasetexists $TESTPOOL/$TESTVOL1 || \ 67 log_fail "zfs create -V size $TESTPOOL/$TESTVOL1 fail." 68 propertycheck $TESTPOOL/$TESTVOL1 ${RW_VOL_PROP[i]} || \ 70 log_must zfs destroy -f $TESTPOOL/$TESTVOL1 73 $TESTPOOL/$TESTVOL1 74 datasetexists $TESTPOOL/$TESTVOL1 || \ 75 log_fail "zfs create -s -V $TESTPOOL/$TESTVOL1 fail." [all …]
|
H A D | zfs_create_007_pos.ksh | 52 datasetexists $TESTPOOL/$TESTVOL && \ 53 log_must zfs destroy -f $TESTPOOL/$TESTVOL 54 datasetexists $TESTPOOL/$TESTVOL1 && \ 55 log_must zfs destroy -f $TESTPOOL/$TESTVOL1 74 log_must zfs create $opts -V $VOLSIZE $TESTPOOL/$TESTVOL 75 datasetexists $TESTPOOL/$TESTVOL || \ 76 log_fail "zfs create $TESTPOOL/$TESTVOL fail." 78 datasetexists $TESTPOOL/$TESTVOL1 || \ 79 log_fail "zfs create $TESTPOOL/$TESTVOL1 fail." 84 propertycheck $TESTPOOL/$TESTVOL ${RW_VOL_PROP[i]} || \ [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_get/ |
H A D | zfs_get_common.kshlib | 96 datasetexists $TESTPOOL/$TESTVOL@$TESTSNAP && \ 97 destroy_snapshot $TESTPOOL/$TESTVOL@$TESTSNAP 98 datasetexists $TESTPOOL/$TESTFS@$TESTSNAP && \ 99 destroy_snapshot $TESTPOOL/$TESTFS@$TESTSNAP 101 datasetexists $TESTPOOL/$TESTCLONE && \ 102 destroy_clone $TESTPOOL/$TESTCLONE 103 datasetexists $TESTPOOL/$TESTFS@$TESTSNAP1 && \ 104 destroy_snapshot $TESTPOOL/$TESTFS@$TESTSNAP1 106 bkmarkexists $TESTPOOL/$TESTVOL#$TESTBKMARK && \ 108 bkmarkexists $TESTPOOL/$TESTFS#$TESTBKMARK && \ [all …]
|
H A D | zfs_get_001_pos.ksh | 70 typeset dataset=($TESTPOOL/$TESTCTR $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL \ 71 $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTVOL@$TESTSNAP 72 $TESTPOOL/$TESTFS@$TESTSNAP1 $TESTPOOL/$TESTCLONE) 75 typeset bookmark=($TESTPOOL/$TESTFS#$TESTBKMARK $TESTPOOL/$TESTVOL#$TESTBKMARK) 124 create_snapshot $TESTPOOL/$TESTFS $TESTSNAP 125 create_snapshot $TESTPOOL/$TESTVOL $TESTSNAP 128 create_snapshot $TESTPOOL/$TESTFS $TESTSNAP1 129 create_clone $TESTPOOL/$TESTFS@$TESTSNAP1 $TESTPOOL/$TESTCLONE 132 create_bookmark $TESTPOOL/$TESTFS $TESTSNAP $TESTBKMARK 133 create_bookmark $TESTPOOL/$TESTVOL $TESTSNAP $TESTBKMARK
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_initialize/ |
H A D | zpool_initialize_offline_export_import_online.ksh | 43 log_must zpool create -f $TESTPOOL mirror $DISK1 $DISK2 45 log_must zpool initialize $TESTPOOL $DISK1 46 log_must zpool offline $TESTPOOL $DISK1 47 progress="$(initialize_progress $TESTPOOL $DISK1)" 49 log_mustnot eval "initialize_prog_line $TESTPOOL $DISK1 | grep suspended" 51 log_must zpool export $TESTPOOL 52 log_must zpool import $TESTPOOL 54 new_progress="$(initialize_progress $TESTPOOL $DISK1)" 58 log_mustnot eval "initialize_prog_line $TESTPOOL $DISK1 | grep suspended" 60 log_must zpool online $TESTPOOL $DISK1 [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_trim/ |
H A D | zpool_trim_offline_export_import_online.ksh | 39 log_must zpool create -f $TESTPOOL mirror $DISK1 $DISK2 41 log_must zpool trim -r 128M $TESTPOOL $DISK1 42 log_must zpool offline $TESTPOOL $DISK1 43 progress="$(trim_progress $TESTPOOL $DISK1)" 45 log_mustnot eval "trim_prog_line $TESTPOOL $DISK1 | grep suspended" 47 log_must zpool export $TESTPOOL 48 log_must zpool import $TESTPOOL 50 new_progress="$(trim_progress $TESTPOOL $DISK1)" 54 log_mustnot eval "trim_prog_line $TESTPOOL $DISK1 | grep suspended" 56 log_must zpool online $TESTPOOL $DISK1 [all …]
|
H A D | zpool_trim_suspend_resume.ksh | 40 if poolexists $TESTPOOL; then 41 destroy_pool $TESTPOOL 53 log_must zpool create -f $TESTPOOL $LARGEFILE 55 log_must zpool trim -r 256M $TESTPOOL 58 [[ -z "$(trim_progress $TESTPOOL $LARGEFILE)" ]] && \ 62 log_must zpool trim -s $TESTPOOL 63 log_must eval "trim_prog_line $TESTPOOL $LARGEFILE | grep suspended" 64 progress="$(trim_progress $TESTPOOL $LARGEFILE)" 67 [[ "$progress" -eq "$(trim_progress $TESTPOOL $LARGEFILE)" ]] || \ 70 log_must zpool trim $TESTPOOL $LARGEFILE [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/ |
H A D | zpool_add_001_neg.ksh | 54 "add $TESTPOOL" "add -f $TESTPOOL" "add -n $TESTPOOL" \ 55 "add -fn $TESTPOOL" "add -nf $TESTPOOL" \ 56 "add $TESTPOOL $ADD_DISK" "add -f $TESTPOOL $ADD_DISK" \ 57 "add -n $TESTPOOL $ADD_DISK" \ 58 "add -fn $TESTPOOL $ADD_DISK" \ 59 "add -nf $TESTPOOL $ADD_DISK" \
|
H A D | zpool_create_001_neg.ksh | 54 "create $TESTPOOL" "create -f $TESTPOOL" "create -n $TESTPOOL" \ 55 "create -fn $TESTPOOL" "create -nf $TESTPOOL" \ 56 "create $TESTPOOL $ADD_DISK" "create -f $TESTPOOL $ADD_DISK" \ 57 "create -n $TESTPOOL $ADD_DISK" \ 58 "create -fn $TESTPOOL $ADD_DISK" \ 59 "create -nf $TESTPOOL $ADD_DISK"
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mount/ |
H A D | umount_unlinked_drain.ksh | 37 mounted $TESTDIR.$fs || zfs mount $TESTPOOL/$TESTFS.$fs 39 zfs set xattr=on $TESTPOOL/$TESTFS.$fs 82 log_must zfs set xattr=$xa $TESTPOOL/$TESTFS.$fs 93 log_must unlinked_size_is 0 $TESTPOOL $TESTPOOL/$TESTFS.$fs 99 log_must unlinked_size_is 100 $TESTPOOL $TESTPOOL/$TESTFS.$fs 102 log_must zfs umount $TESTPOOL/$TESTFS.$fs 104 log_must zfs mount $TESTPOOL/$TESTFS.$fs 106 log_must unlinked_size_is 100 $TESTPOOL $TESTPOOL/$TESTFS.$fs 110 log_must zfs umount $TESTPOOL/$TESTFS.$fs 111 log_must zfs mount $TESTPOOL/$TESTFS.$fs [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/online_offline/ |
H A D | online_offline_001_pos.ksh | 47 DISKLIST=$(get_disklist $TESTPOOL) 55 log_must zpool online $TESTPOOL $disk 56 check_state $TESTPOOL $disk "online" 74 log_must zpool offline $TESTPOOL $disk 75 check_state $TESTPOOL $disk "offline" 77 log_fail "$disk of $TESTPOOL is not offline." 81 log_must zpool online $TESTPOOL $disk 82 check_state $TESTPOOL $disk "online" 84 log_fail "$disk of $TESTPOOL did not match online state" 93 verify_filesys "$TESTPOOL" "$TESTPOOL/$TESTFS" "$dir"
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_scrub/ |
H A D | zpool_scrub_002_pos.ksh | 62 mntpnt=$(get_prop mountpoint $TESTPOOL/$TESTFS) 67 log_must zpool scrub $TESTPOOL 68 log_must is_pool_scrubbing $TESTPOOL true 69 log_must zpool scrub -p $TESTPOOL 70 log_must is_pool_scrub_paused $TESTPOOL true 71 log_mustnot zpool scrub -p $TESTPOOL 72 log_must is_pool_scrub_paused $TESTPOOL true 73 log_must zpool scrub $TESTPOOL 74 log_must is_pool_scrubbing $TESTPOOL true 75 log_must zpool scrub -s $TESTPOOL [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/resilver/ |
H A D | resilver_restart_001.ksh | 54 destroy_pool $TESTPOOL 76 VDEV_DEFERS=$(zdb -C $TESTPOOL | awk ' 123 set -A DATAPATHS /$TESTPOOL/fs{0..3}/dat.0 151 log_must zpool replace $TESTPOOL $VDEV_REPLACE 160 log_must zpool sync $TESTPOOL 161 log_must zpool online $TESTPOOL ${VDEV_FILES[2]} 162 log_must zpool sync $TESTPOOL 182 is_pool_resilvered $TESTPOOL && break 185 is_pool_resilvered $TESTPOOL || 189 log_must zpool sync $TESTPOOL [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_detach/ |
H A D | zpool_detach_001_neg.ksh | 46 DISKLIST=$(get_disklist $TESTPOOL) 49 "$TESTPOOL" "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTFS $DISKLIST" \ 50 "$TESTPOOL/$TESTCTR" "$TESTPOOL/$TESTCTR/$TESTFS1" \ 51 "$TESTPOOL/$TESTCTR $DISKLIST" "$TESTPOOL/$TESTVOL" \ 52 "$TESTPOOL/$TESTCTR/$TESTFS1 $DISKLIST" "$TESTPOOL/$TESTVOL $DISKLIST" \
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_resilver/ |
H A D | zpool_resilver_restart.ksh | 57 mntpnt=$(get_prop mountpoint $TESTPOOL/$TESTFS) 62 log_must zpool detach $TESTPOOL $DISK2 67 log_must zpool detach $TESTPOOL $DISK3 72 log_must zpool attach $TESTPOOL $DISK1 $DISK2 73 log_must is_pool_resilvering $TESTPOOL true 75 log_must zpool attach $TESTPOOL $DISK1 $DISK3 76 log_must is_pool_resilvering $TESTPOOL true 79 log_must zpool resilver $TESTPOOL 80 log_must is_deferred_scan_started $TESTPOOL 83 log_must check_state $TESTPOOL "$DISK2" "online" [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cache/ |
H A D | cache_006_pos.ksh | 56 log_must zpool create $TESTPOOL $type $VDEV \ 60 $TESTPOOL $ldev 'ONLINE' 65 log_must zpool export $TESTPOOL 66 log_must zpool import -d $VDIR $TESTPOOL 67 log_must display_status $TESTPOOL 70 $TESTPOOL $ldev 'ONLINE' 75 log_must zpool destroy $TESTPOOL 76 log_must zpool import -Df -d $VDIR $TESTPOOL 77 log_must display_status $TESTPOOL 80 $TESTPOOL $ldev 'ONLINE' [all …]
|