/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool/ |
H A D | zpool_003_pos.ksh | 53 log_must zpool freeze $TESTPOOL 55 log_mustnot zpool freeze $TESTPOOL 56 log_mustnot zpool freeze ${TESTPOOL%%/*}
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_022_pos.ksh | 50 datasetexists $TESTPOOL && log_must zpool destroy $TESTPOOL 83 log_must zpool create $opts -f $TESTPOOL $DISKS 84 datasetexists $TESTPOOL || log_fail "zpool create $TESTPOOL fail." 88 propertycheck $TESTPOOL ${RW_FS_PROP[i]} || \
|
H A D | zpool_create_021_pos.ksh | 50 datasetexists $TESTPOOL && destroy_pool $TESTPOOL 78 log_must zpool create -O ${RW_FS_PROP[$i]} -f $TESTPOOL $DISKS 79 datasetexists $TESTPOOL || \ 80 log_fail "zpool create $TESTPOOL fail." 81 propertycheck $TESTPOOL ${RW_FS_PROP[i]} || \ 83 log_must zpool destroy $TESTPOOL
|
H A D | zpool_create_016_pos.ksh | 51 if poolexists $TESTPOOL; then 52 destroy_pool $TESTPOOL 96 log_must zpool create $TESTPOOL $pool_dev 97 log_must zpool destroy $TESTPOOL
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_copies/ |
H A D | zfs_copies.kshlib | 97 vol=$TESTPOOL/$TESTVOL1 98 vol_b_path=/dev/zvol/dsk/$TESTPOOL/$TESTVOL1 99 vol_r_path=/dev/zvol/rdsk/$TESTPOOL/$TESTVOL1
|
H A D | zfs_copies_002_pos.ksh | 53 if datasetexists $TESTPOOL/fs_$val; then 54 log_must zfs destroy $TESTPOOL/fs_$val 63 log_must zfs create -o copies=$val $TESTPOOL/fs_$val 65 log_must mkfile $FILESIZE /$TESTPOOL/fs_$val/$FILE 79 used=$(get_used_prop $TESTPOOL/fs_$val) 85 blks=`ls -ls /$TESTPOOL/fs_$val/$FILE | awk '{print $1}'` 92 used=`df -F zfs -k /$TESTPOOL/fs_$val/$FILE | grep $TESTPOOL/fs_$val \ 100 used=`du -k /$TESTPOOL/fs_$val/$FILE | awk '{print $1}'`
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | libtest.shlib | 142 if poolexists $TESTPOOL ; then 143 destroy_pool $TESTPOOL 145 [[ -d /$TESTPOOL ]] && rm -rf /$TESTPOOL 348 [[ -d /$TESTPOOL ]] && rm -rf /$TESTPOOL 360 # @uses: ZPOOL ZFS TESTPOOL 368 [[ -d /$TESTPOOL$nmirrors ]] && rm -rf /$TESTPOOL$nmirrors 381 # @uses: ZPOOL ZFS TESTPOOL 389 [[ -d /$TESTPOOL$nraidzs ]] && rm -rf /$TESTPOOL$nraidzs 399 # @uses: ZPOOL ZFS TESTPOOL 420 [[ -d /$TESTPOOL ]] && rm -rf /$TESTPOOL [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/delegate/ |
H A D | zfs_allow_009_neg.ksh | 56 log_mustnot zfs allow $dtst $TESTPOOL
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/pool_checkpoint/ |
H A D | pool_checkpoint.kshlib | 57 FS0=$TESTPOOL/$TESTFS 58 FS1=$TESTPOOL/$TESTFS1 59 FS2=$TESTPOOL/$TESTFS2 69 DISKFS=$TESTPOOL/disks 146 log_must zpool create $TESTPOOL "$TESTDISK" 165 if poolexists $TESTPOOL; then 166 log_must zpool destroy $TESTPOOL 236 log_must zdb $TESTPOOL 294 log_must zdb $TESTPOOL 360 wait_discard_finish $TESTPOOL
|
H A D | checkpoint_zdb.ksh | 51 CHECKPOINTED_FS1=$TESTPOOL$CHECKPOINT_SUFFIX/$TESTFS1 57 log_must zpool checkpoint $TESTPOOL 61 zdb $TESTPOOL | grep "Checkpointed uberblock found" || \ 67 zdb $TESTPOOL | grep "Dataset $FS1" && \ 70 zdb -k $TESTPOOL | grep "Dataset $CHECKPOINTED_FS1" || \ 73 log_must zpool export $TESTPOOL 81 zdb -e $TESTPOOL | grep "Dataset $FS1" && \ 87 log_must zpool import $TESTPOOL 89 log_must zpool checkpoint -d $TESTPOOL 91 zdb $TESTPOOL | grep "Checkpointed uberblock found" && \ [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/no_space/ |
H A D | enospc_002_pos.ksh | 33 log_must_busy zpool destroy -f $TESTPOOL 41 log_must zfs snapshot $TESTPOOL/$TESTFS@snap 63 log_mustnot_expect space zfs clone $TESTPOOL/$TESTFS@snap $TESTPOOL/clone 69 log_must zfs rename $TESTPOOL/$TESTFS@snap $TESTPOOL/$TESTFS@snap_newname 70 log_must zfs rename $TESTPOOL/$TESTFS@snap_newname $TESTPOOL/$TESTFS@snap 71 log_must zfs rename $TESTPOOL/$TESTFS $TESTPOOL/${TESTFS}_newname 72 log_must zfs rename $TESTPOOL/${TESTFS}_newname $TESTPOOL/$TESTFS 80 log_must zpool scrub $TESTPOOL 81 zpool scrub -s $TESTPOOL 83 log_must zpool set comment="" $TESTPOOL [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_misc/ |
H A D | zvol_misc_002_pos.ksh | 47 volsize=$(zfs get -H -o value volsize $TESTPOOL/$TESTVOL) 51 snapexists $TESTPOOL/$TESTVOL@snap && \ 52 zfs destroy $TESTPOOL/$TESTVOL@snap 58 zfs set volsize=$volsize $TESTPOOL/$TESTVOL 68 log_must zfs set volsize=128m $TESTPOOL/$TESTVOL 70 echo "y" | newfs -v /dev/zvol/rdsk/$TESTPOOL/$TESTVOL >/dev/null 2>&1 71 (( $? != 0 )) && log_fail "Unable to newfs(8) $TESTPOOL/$TESTVOL" 74 log_must mount /dev/zvol/dsk/$TESTPOOL/$TESTVOL $TESTDIR 91 log_must zfs snapshot $TESTPOOL/$TESTVOL@snap 93 fsck -n /dev/zvol/rdsk/$TESTPOOL/$TESTVOL@snap >/dev/null 2>&1
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/vdev_zaps/ |
H A D | vdev_zaps_005_pos.ksh | 34 log_must zpool create -f $TESTPOOL $DISK 38 log_must zdb -PC $TESTPOOL > $conf 42 assert_zap_common $TESTPOOL $DISK "top" $orig_top 43 assert_zap_common $TESTPOOL $DISK "leaf" $orig_leaf 47 log_must zpool export $TESTPOOL 50 log_must zpool import $TESTPOOL 53 log_must zdb -PC $TESTPOOL > $conf
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/trim/ |
H A D | autotrim_trim_integrity.ksh | 46 if poolexists $TESTPOOL; then 47 destroy_pool $TESTPOOL 68 log_must zpool create -f $TESTPOOL $type $TRIM_VDEVS 69 log_must zpool set autotrim=on $TESTPOOL 74 dir="/$TESTPOOL/autotrim-$((RANDOM % 5))" 81 log_must zpool trim $TESTPOOL 82 wait_trim $TESTPOOL $TRIM_VDEVS 85 log_must du -hs /$TESTPOOL 87 verify_trim_io $TESTPOOL "ind" 10 88 verify_pool $TESTPOOL [all …]
|
H A D | trim.kshlib | 36 typeset pool="${1-:$TESTPOOL}" 63 typeset pool="${1:-$TESTPOOL}" 82 typeset pool="${1-:$TESTPOOL}"
|
H A D | trim_integrity.ksh | 45 if poolexists $TESTPOOL; then 46 destroy_pool $TESTPOOL 67 log_must zpool create -f $TESTPOOL $type $TRIM_VDEVS 72 dir="/$TESTPOOL/trim-$((RANDOM % 5))" 78 log_must du -hs /$TESTPOOL 80 log_must zpool trim $TESTPOOL 81 wait_trim $TESTPOOL $TRIM_VDEVS 83 verify_trim_io $TESTPOOL "ind" 10 84 verify_pool $TESTPOOL 86 log_must zpool destroy $TESTPOOL
|
H A D | autotrim_integrity.ksh | 45 if poolexists $TESTPOOL; then 46 destroy_pool $TESTPOOL 67 log_must zpool create -f $TESTPOOL $type $TRIM_VDEVS 68 log_must zpool set autotrim=on $TESTPOOL 73 dir="/$TESTPOOL/autotrim-$((RANDOM % 5))" 79 log_must du -hs /$TESTPOOL 81 verify_trim_io $TESTPOOL "ind" 10 82 verify_pool $TESTPOOL 84 log_must zpool destroy $TESTPOOL
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/snapshot/ |
H A D | rollback_003_pos.ksh | 56 export __ZFS_POOL_RESTRICT="$TESTPOOL" 67 for fs in "$TESTPOOL/$TESTFILE/$TESTFILE.1" "$TESTPOOL/$TESTFILE" 74 [[ -e /$TESTPOOL ]] && \ 75 log_must rm -rf $TESTPOOL/* 86 log_must touch /$TESTPOOL/$TESTFILE 87 sync_pool $TESTPOOL 90 log_must zfs create $TESTPOOL/$TESTFILE 95 log_must zfs snapshot $TESTPOOL/$TESTFILE@$TESTSNAP 98 export __ZFS_POOL_RESTRICT="$TESTPOOL" 103 log_must touch /$TESTPOOL/$TESTFILE/$TESTFILE.1
|
H A D | rollback_001_pos.ksh | 96 sync_pool $TESTPOOL
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/ |
H A D | slog_014_pos.ksh | 52 log_must zpool create $TESTPOOL $type $VDEV $spare $SDEV \ 56 dd if=/dev/urandom of=/$TESTPOOL/filler bs=1024k count=50 70 log_must zpool scrub $TESTPOOL 71 log_must display_status $TESTPOOL 73 log_must wait_for_degraded $TESTPOOL 75 zpool status -v $TESTPOOL | grep logs | \ 81 log_must zpool destroy -f $TESTPOOL
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/ |
H A D | send_encrypted_files.ksh | 48 datasetexists $TESTPOOL/$TESTFS2 && \ 49 log_must zfs destroy -r $TESTPOOL/$TESTFS2 50 datasetexists $TESTPOOL/recv && \ 51 log_must zfs destroy -r $TESTPOOL/recv 59 typeset keyfile=/$TESTPOOL/pkey 60 typeset sendfile=/$TESTPOOL/sendfile 61 typeset sendfile2=/$TESTPOOL/sendfile2 69 log_must touch /$TESTPOOL/$TESTFS2/empty 71 log_must mkfile 32M /$TESTPOOL/$TESTFS2/full 75 log_must mkdir -p /$TESTPOOL/$TESTFS2/dir [all …]
|
H A D | send_encrypted_truncated_files.ksh | 44 datasetexists $TESTPOOL/$TESTFS2 && \ 45 log_must zfs destroy -r $TESTPOOL/$TESTFS2 46 datasetexists $TESTPOOL/recv && \ 47 log_must zfs destroy -r $TESTPOOL/recv 55 typeset keyfile=/$TESTPOOL/pkey 56 typeset sendfile=/$TESTPOOL/sendfile 57 typeset sendfile2=/$TESTPOOL/sendfile2 89 sync_pool $TESTPOOL 90 log_must zfs umount $TESTPOOL/$TESTFS2 91 log_must zfs mount $TESTPOOL/$TESTFS2 [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/removal/ |
H A D | removal.kshlib | 145 log_must attempt_during_removal $TESTPOOL $REMOVEDISK "$@" 146 log_mustnot vdevs_in_pool $TESTPOOL $REMOVEDISK 147 log_must zdb -cd $TESTPOOL
|
H A D | remove_expanded.ksh | 60 log_must zpool reopen $TESTPOOL 61 log_must zpool online -e $TESTPOOL $DISK0 73 log_must zpool add $TESTPOOL $DISK1 74 log_must zpool remove $TESTPOOL $DISK0 75 log_must wait_for_removal $TESTPOOL 81 log_must zpool add $TESTPOOL $DISK2 87 log_must zdb $TESTPOOL
|
/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"
|