Set timeout before creating pool in test

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #15309
This commit is contained in:
Paul Dagnelie 2023-09-25 11:14:00 -07:00 committed by GitHub
parent 2e2a46e0a5
commit 8a9ba769ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -48,11 +48,11 @@ function cleanup
log_onexit cleanup log_onexit cleanup
log_must zpool create -o feature@block_cloning=enabled $TESTPOOL $DISKS
log_must set_tunable64 TXG_TIMEOUT 5000 log_must set_tunable64 TXG_TIMEOUT 5000
log_must sync_pool $TESTPOOL true log_must sync_pool $TESTPOOL true
log_must zpool create -o feature@block_cloning=enabled $TESTPOOL $DISKS
log_must dd if=/dev/urandom of=/$TESTPOOL/file bs=128K count=4 log_must dd if=/dev/urandom of=/$TESTPOOL/file bs=128K count=4
log_must clonefile -f /$TESTPOOL/file /$TESTPOOL/clone 0 0 524288 log_must clonefile -f /$TESTPOOL/file /$TESTPOOL/clone 0 0 524288