]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - tests/zfs-tests/tests/functional/features/async_destroy/async_destroy_001_pos.ksh
New upstream version 0.7.3
[mirror_zfs-debian.git] / tests / zfs-tests / tests / functional / features / async_destroy / async_destroy_001_pos.ksh
index 7258e635bca653166eb6bf64c9ddb308c89d63de..a6ef964ac5fc9ecab7621e1f584ac01ba3231b86 100755 (executable)
@@ -56,12 +56,9 @@ log_assert "async_destroy can suspend and resume traversal"
 
 log_must zfs create -o recordsize=512 -o compression=off $TEST_FS
 
-# Create enough blocks that it will take 4 TXGs to free them all.
-typeset zfs_free_max_blocks=100000
-typeset blocks=$((zfs_free_max_blocks * 4 * 512 / 1024 / 1024))
-
-log_must dd bs=1024k count=$blocks if=/dev/zero of=/$TEST_FS/file
-
+# Create enough blocks that it will take multiple TXGs to free them all.
+log_must dd bs=1024k count=128 if=/dev/zero of=/$TEST_FS/file
+log_must sync
 log_must zfs destroy $TEST_FS
 
 #