| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/ |
| H A D | zdb_objset_id.ksh | 23 # zdb -d pool/<objset id> will display the dataset 29 # 4. Run zdb -d to get the objset ID of the dataset 30 # 5. Run zdb -dddddd pool/objsetID objectID (decimal) 32 # 7. Run zdb -dddddd pool/objsetID objectID (hex) 34 # 9. Repeat with zdb -NNNNNN pool/objsetID objectID 36 # 11. Run zdb -dddddd pool/objsetID (hex) 37 # 12. Match name from zdb against kstat 40 # 15. zdb -d for numeric datasets succeeds 41 # 16. zdb -N for numeric datasets fails 42 # 17. zdb -dN for numeric datasets fails [all …]
|
| H A D | zdb_display_block.ksh | 23 # zdb -R pool <DVA>:b will display the block 28 # 3. Run zdb -ddddddbbbbbb against the file 32 # 5. Run zdb -R with :bd displays first L0 33 # 6. Run zdb -R with :b80d displays 2nd L0 34 # 7. Run zdb -R with :db80 displays 2nd L0 35 # 8. Run zdb -R with :id flag displays indirect block 36 # (similar to zdb -ddddddbbbbbb output) 37 # 9. Run zdb -R with :id flag and .0 vdev 46 log_assert "Verify zdb -R :b flag (block display) works as expected" 72 output=$(zdb -ddddddbbbbbb $TESTPOOL/$TESTFS $obj 2> /dev/null \ [all …]
|
| H A D | zdb_decompress.ksh | 23 # zdb -R pool <DVA>:d will display the correct data and length 28 # 3. Run zdb -ddddddbbbbbb against the file 30 # 5. Run zdb -R with :d flag and match the data 31 # 6. Run zdb -R with :dr flags and match the lsize/psize 32 # 7. Run zdb -R with :dr flags and match the lsize 33 # 8. Run zdb -R with :dr flags and match the psize 42 log_assert "Verify zdb -R :d flag (decompress) works as expected" 76 output=$(zdb -ddddddbbbbbb $TESTPOOL/$TESTFS $obj 2> /dev/null \ 81 # use the length reported by zdb -ddddddbbbbbb 86 output=$(zdb -R $TESTPOOL $vdev:$offset:$size_str:d) [all …]
|
| H A D | zdb_tunables.ksh | 22 log_assert "zdb can work with libzpool tunables" 25 log_must eval 'zdb -o zfs_recover | grep -qE "^zfs_recover: 0$"' 26 log_must eval 'zdb -o show=zfs_recover | grep -qE "^zfs_recover: 0$"' 29 log_must eval 'zdb -o info=zfs_recover | grep -qE "^zfs_recover \[[[:alnum:]_]+ r[dw]]: .+"' 34 log_must test $(zdb -o show | head -50 | grep -cE "^[[:alnum:]_]+: .+") -eq 50 38 log_must test $(zdb -o info | head -50 | grep -cE "^[[:alnum:]_]+ \[[[:alnum:]_]+ r[dw]]: .+") -eq … 41 log_mustnot_expect 'no such tunable: hello' zdb -o hello 42 log_mustnot_expect 'no such tunable: hello' zdb -o show=hello 43 log_mustnot_expect 'no such tunable: hello' zdb -o info=hello 46 log_must eval 'zdb -o zfs_recover=1 | grep -qE "^zfs_recover: 0 -> 1$"' [all …]
|
| H A D | zdb_006_pos.ksh | 23 # zdb -d will work on imported/exported pool with pool/dataset argument 27 # 2. Run zdb -d with pool and dataset arguments. 29 # 4. Run zdb -ed with pool and dataset arguments. 40 log_assert "Verify zdb -d works on imported/exported pool with pool/dataset argument" 49 log_must zdb -d $TESTPOOL 50 log_must zdb -d $TESTPOOL/ 51 log_must zdb -d $TESTPOOL/$TESTFS 52 log_must zdb -d $TESTPOOL/$TESTFS@snap 56 log_must zdb -ed $TESTPOOL 57 log_must zdb -ed $TESTPOOL/ [all …]
|
| H A D | zdb_005_pos.ksh | 23 # zdb -l exit codes are correct 29 # 3. Run zdb -l on vdev[0] and verify exit value 0 30 # 4. Run zdb -l on vdev[1] and verify exit value 1 31 # 5. Run zdb -l on the empty file and verify exit value 2 34 log_assert "Verify zdb -l exit codes are correct" 65 zdb -l $DEV_RDSKDIR/${DISK[0]} 67 log_fail "zdb -l exit codes are incorrect." 69 zdb -l $DEV_RDSKDIR/${DISK[1]} 71 log_fail "zdb -l exit codes are incorrect." 73 zdb -l $TEMPFILE [all …]
|
| H A D | zdb_decompress_zstd.ksh | 25 # zdb -Z pool <objid> will display the ZSTD compression header 32 # 3. Run zdb -Zddddddbbbbbb against the file 36 # 7. Run zdb -R with :dr flags and confirm the size and content match 44 log_assert "Verify zdb -Z (read ZSTD header) works as expected" 70 output=$(zdb -Zddddddbbbbbb $TESTPOOL/$TESTFS $obj 2> /dev/null \ 75 # use the length reported by zdb -ddddddbbbbbb 87 # Get the ZSTD header reported by zdb -Z 91 "zdb -Z failed: physical block size was less than header content length ($psize_bytes < $zstd_size)" 97 "zdb -Z failed: compression level did not match header level ($zstd_level < $random_level)" 101 output=$(ZDB_NO_ZLE="true" zdb -R $TESTPOOL $vdev:$offset:$size_str:dr 2> /dev/null) [all …]
|
| H A D | zdb_object_range_neg.ksh | 19 # A badly formed object range parameter passed to zdb -dd should 24 # 2. Run zdb -dd with assorted invalid object range arguments and 26 # 3. Run zdb -dd with an invalid object identifier and 34 log_assert "Execute zdb using invalid object range parameters." 48 log_mustnot zdb -dd $TESTPOOL 0:1:${bad_flags[i]} 49 log_mustnot zdb -dd $TESTPOOL 0:1:A-${bad_flags[i]} 59 log_mustnot zdb -dd $TESTPOOL ${bad_ranges[i]} 64 obj_id_highest=$(zdb -P -dd $TESTPOOL/$TESTFS 2>/dev/null | 67 log_mustnot zdb -dd $TESTPOOL/$TESTFS $obj_id_invalid 69 log_pass "Badly formed zdb objec [all...] |
| H A D | zdb_label_checksum.ksh | 24 # zdb -l will report corrupted labels checksums 34 log_assert "Verify zdb -l will report corrupted labels checksums" 55 msg_count=$(zdb -l $VIRTUAL_DISK | grep -c '(Bad label cksum)') 57 log_fail "zdb -l produces an incorrect number of corrupted labels." 59 msg_count=$(zdb -lll $VIRTUAL_DISK | grep -c '(Bad label cksum)') 61 log_fail "zdb -l produces an incorrect number of corrupted labels." 71 msg_count=$(zdb -lll $VIRTUAL_DISK | grep -c '(Bad label cksum)') 73 log_fail "zdb -l produces an incorrect number of corrupted labels." 79 log_pass "zdb -l bad cksum report is correct."
|
| H A D | zdb_args_pos.ksh | 27 # ZDB allows a large number of possible inputs 29 # exit values. These input options are based on the zdb 33 # 1. Create an array containing value zdb parameters. 40 log_assert "Execute zdb using valid parameters." 54 log_must eval "zdb $i $TESTPOOL >/dev/null" 64 log_must eval "zdb -e $i $TESTPOOL >/dev/null" 76 log_must eval "zdb -l $i ${VDEV_ARRAY[0]} >/dev/null" 84 log_must eval "zdb -m $i $TESTPOOL >/dev/null" 95 log_pass "Valid zdb parameters pass as expected."
|
| H A D | zdb_checksum.ksh | 23 # zdb -c will display the same checksum as -ddddddbbbbbb 28 # 3. Run zdb -ddddddbbbbbb against the file 30 # 5. Run zdb -R with :c flag and match the checksum 38 log_assert "Verify zdb -R generates the correct checksum." 56 output=$(zdb -ddddddbbbbbb $TESTPOOL/$TESTFS $obj 2> /dev/null \ 62 output=$(zdb -R $TESTPOOL $dva:c 2> /dev/null) 64 log_fail "zdb -R failed to print the correct checksum" 66 log_pass "zdb -R generates the correct checksum"
|
| H A D | zdb_002_pos.ksh | 23 # zdb will accurately count the feature refcount for pools with and without 27 # 1. Create a pool, and collect zdb output for the pool. 32 log_assert "Verify zdb accurately counts feature refcounts." 36 typeset tmpfile="$TEST_BASE_DIR/zdb-feature-mismatch" 46 log_must eval "zdb $TESTPOOL >$tmpfile" 48 log_fail "Found feature refcount mismatches in zdb output." 52 log_pass "zdb accurately counts feature refcounts."
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pool_checkpoint/ |
| H A D | checkpoint_zdb.ksh | 23 # Ensure that checkpoint verification within zdb works as 31 # 5. Verify zdb finds checkpoint when run on current state 32 # 6. Verify zdb finds old dataset when run on checkpointed 34 # 7. Export pool, and verify the same things with zdb to 37 # 9. Verify zdb does not find the checkpoint anymore in the 39 # 10.Verify that zdb cannot find the checkpointed state 46 # zdb does this thing where it imports the checkpointed state of the 62 log_must eval "zdb $TESTPOOL | grep -q \"Checkpointed uberblock found\"" 63 log_mustnot eval "zdb -k $TESTPOOL | grep -q \"Checkpointed uberblock found\"" 64 log_mustnot eval "zdb $TESTPOOL | grep \"Dataset $FS1\"" [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/ |
| H A D | mmp_on_zdb.ksh | 26 # zdb will work while multihost is enabled. 31 # 3. Run zdb -d with pool and dataset arguments. 33 # 5. Run zdb -kd with pool and dataset arguments. 36 # 8. Run zdb -ed with pool and dataset arguments. 49 log_assert "Verify zdb -d works while multihost is enabled" 61 log_must zdb -d $TESTPOOL 62 log_must zdb -d $TESTPOOL/ 63 log_must zdb -d $TESTPOOL/$TESTFS 64 log_must zdb -d $TESTPOOL/$TESTFS@snap 67 log_must zdb [all...] |
| /freebsd/tests/sys/cddl/zfs/tests/cli_user/misc/ |
| H A D | zdb_001_neg.ksh | 38 # zdb can't run as a user on datasets, but can run without arguments 41 # 1. Run zdb as a user, it should print information 42 # 2. Run zdb as a user on different datasets, it should fail 56 run_unprivileged $@ > $TMPDIR/zdb.${TESTCASE_ID} 57 $GREP "Dataset mos" $TMPDIR/zdb.${TESTCASE_ID} 62 $RM $TMPDIR/zdb.${TESTCASE_ID} 77 log_assert "zdb can't run as a user on datasets, but can run without arguments" 80 run_unprivileged $ZDB > $TMPDIR/zdb_001_neg.${TESTCASE_ID}.txt || log_fail "$ZDB failed" 85 check_zdb $ZDB $TESTPOOL 86 check_zdb $ZDB $TESTPOOL/$TESTFS [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/misc/ |
| H A D | zdb_001_neg.ksh | 29 # zdb can't run as a user on datasets, but can run without arguments 32 # 1. Run zdb as a user, it should print information 33 # 2. Run zdb as a user on different datasets, it should fail 49 log_assert "zdb can't run as a user on datasets, but can run without arguments" 52 log_must eval "zdb > $TEST_BASE_DIR/zdb_001_neg.$$.txt" 58 check_zdb zdb $TESTPOOL 59 check_zdb zdb $TESTPOOL/$TESTFS 60 check_zdb zdb $TESTPOOL/$TESTFS@snap 61 check_zdb zdb $TESTPOOL/$TESTFS.clone 63 log_pass "zdb can't run as a user on datasets, but can run without arguments"
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/ |
| H A D | dedup_bclone.ksh | 30 # 5. Delete files in sequence, verifying DDT counts and zdb -b at each step 69 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'" 77 "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-duplicate:.*entries=4'" 78 log_must zdb -b $TESTPOOL 85 "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-duplicate:.*entries=4'" 86 log_must zdb -b $TESTPOOL 93 "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-duplicate:.*entries=4'" 94 log_must zdb -b $TESTPOOL 100 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'" 101 log_must zdb -b $TESTPOOL [all …]
|
| H A D | dedup_fdt_import.ksh | 51 log_mustnot eval "zdb -dddd $TESTPOOL 1 | grep -q DDT-sha256" 62 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'" 65 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256 | wc -l) -eq 1 66 obj=$(zdb -dddd $TESTPOOL 1 | grep DDT-sha256 | awk '{ print $NF }') 69 log_must test $(zdb -dddd $TESTPOOL $obj | grep DDT-sha256-zap- | wc -l) -eq 1 86 log_must eval "zdb -D $TESTPOOL | grep -q 'All DDTs are empty'" 89 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256 | wc -l) -eq 0 99 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'" 102 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256 | wc -l) -eq 1 103 obj=$(zdb -dddd $TESTPOOL 1 | grep DDT-sha256 | awk '{ print $NF }') [all …]
|
| H A D | dedup_legacy_fdt_upgrade.ksh | 52 log_mustnot eval "zdb -dddd $TESTPOOL 1 | grep -q DDT-sha256" 63 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'" 66 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 1 82 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-duplicate:.*entries=4'" 86 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 2 96 log_must eval "zdb -D $TESTPOOL | grep -q 'All DDTs are empty'" 99 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 0 109 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'" 112 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256 | wc -l) -eq 1 113 obj=$(zdb -dddd $TESTPOOL 1 | grep DDT-sha256 | awk '{ print $NF }') [all …]
|
| H A D | dedup_fdt_create.ksh | 51 log_mustnot eval "zdb -dddd $TESTPOOL 1 | grep -q DDT-sha256" 62 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'" 65 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256 | wc -l) -eq 1 66 obj=$(zdb -dddd $TESTPOOL 1 | grep DDT-sha256 | awk '{ print $NF }') 69 log_must test $(zdb -dddd $TESTPOOL $obj | grep DDT-sha256-zap- | wc -l) -eq 1 76 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-duplicate:.*entries=4'" 80 log_must test $(zdb -dddd $TESTPOOL $obj | grep DDT-sha256-zap- | wc -l) -eq 2 90 log_must eval "zdb -D $TESTPOOL | grep -q 'All DDTs are empty'" 93 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256 | wc -l) -eq 0 95 log_must zdb -b $TESTPOOL
|
| H A D | dedup_legacy_fdt_mixed.ksh | 55 log_mustnot eval "zdb -dddd $TESTPOOL 1 | grep -q DDT-skein" 56 log_mustnot eval "zdb -dddd $TESTPOOL 1 | grep -q DDT-blake3" 63 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-skein-zap-unique:.*entries=4'" 66 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-.*-zap- | wc -l) -eq 1 82 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-blake3-zap-unique:.*entries=4'" 86 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-.*-zap- | wc -l) -eq 1 87 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-blake3 | wc -l) -eq 1 90 obj=$(zdb -dddd $TESTPOOL 1 | grep DDT-blake3 | awk '{ print $NF }') 91 log_must test $(zdb -dddd $TESTPOOL $obj | grep DDT-.*-zap- | wc -l) -eq 1 93 log_must zdb -b $TESTPOOL
|
| H A D | dedup_legacy_import.ksh | 44 log_mustnot eval "zdb -dddd $TESTPOOL 1 | grep -q DDT-sha256" 55 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'" 58 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 1 75 log_must eval "zdb -D $TESTPOOL | grep -q 'All DDTs are empty'" 78 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 0 88 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'" 91 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 1 93 log_must zdb -b $TESTPOOL
|
| H A D | dedup_legacy_create.ksh | 44 log_mustnot eval "zdb -dddd $TESTPOOL 1 | grep -q DDT-sha256" 55 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'" 58 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 1 65 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-duplicate:.*entries=4'" 69 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 2 79 log_must eval "zdb -D $TESTPOOL | grep -q 'All DDTs are empty'" 82 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 0 84 log_must zdb -b $TESTPOOL
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/ |
| H A D | redacted_embedded.ksh | 61 log_must eval "zdb -ddddd $sendfs $send_obj >$tmpdir/send.zdb" 62 log_must eval "zdb -ddddd $recvfs $recv_obj >$tmpdir/recv.zdb" 64 log_must grep -q "EMBEDDED" $tmpdir/send.zdb 65 log_must grep -q "EMBEDDED" $tmpdir/recv.zdb 89 log_must eval "zdb -ddddd $sendfs $send_obj >$tmpdir/send.zdb" 90 log_must eval "zdb -ddddd $recvfs $recv_obj >$tmpdir/recv.zdb" 92 log_must grep -q "EMBEDDED" $tmpdir/send.zdb 93 log_must grep -q "EMBEDDED" $tmpdir/recv.zdb
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/ |
| H A D | removal_with_zdb.ksh | 24 log_unsupported "ZDB fails during concurrent pool activity." 50 zdb -e -p $DISKPATH -cudi $TESTPOOL >$zdbout 2>&1 54 log_note "Output: zdb -e -p $DISKPATH -cudi $TESTPOOL" 56 log_note "zdb detected errors with exist status $zdbstat." 58 log_note "zdb -e -p $DISKPATH -cudi $TESTPOOL >zdbout 2>&1" 65 zdb -e -p $DISKPATH -cudi $TESTPOOL >$zdbout 2>&1 69 log_note "Output following removal: zdb -cudi $TESTPOOL" 71 log_fail "zdb detected errors with exit status " \ 75 log_pass "Can use zdb during removal"
|