Skip to content

Commit

Permalink
ZTS: Test case failures
Browse files Browse the repository at this point in the history
* devices/devices_001_pos, devices/devices_002_neg - When only NVMe
  block devices exist no valid major/minor are found.  Update the
  create_dev_file_linux function to handle this case.

* large_dnode_008_pos - Force a pool sync before invoking zdb to
  ensure the updated dnode blocks have been persistented to disk.

* refreserv_raidz - Wait for the /dev/zvol links to be both created
  and removed, this is important because the same device volume
  names are being used repeatedly.

* btree_test - Add missing .gitignore file for btree_test binary.

Signed-off-by: Brian Behlendorf <[email protected]>
  • Loading branch information
behlendorf committed Dec 24, 2019
1 parent c587b2c commit 614e5a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/zfs-tests/cmd/btree_test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/btree_test
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ function create_dev_file_linux

case $filetype in
b)
major=$(awk '/[hsv]d/ { print $1; exit }' \
major=$(awk '/([hsv]d|nvme*)/ { print $1; exit }' \
/proc/partitions)
minor=$(awk '/[hsv]d/ { print $2; exit }' \
minor=$(awk '/([hsv]d|nvme*)/ { print $2; exit }' \
/proc/partitions)
log_must mknod $filename b $major $minor
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ verify_runnable "both"

function cleanup
{
datasetexists $TEST_FS && log_must zfs destroy $TEST_FS
datasetexists $TEST_FS && destroy_dataset $TEST_FS
}

function verify_dnode_packing
Expand Down Expand Up @@ -71,6 +71,7 @@ for ((i=0; i < 100; i++)); do
done

log_must wait
sync_pool $TESTPOOL

verify_dnode_packing

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ for parity in 1 2 3; do
log_must test "$deltapct" -le $maxpct

log_must_busy zfs destroy "$vol"
block_device_wait
done

log_must_busy zpool destroy "$TESTPOOL"
Expand Down

0 comments on commit 614e5a6

Please sign in to comment.