Skip to content

Commit

Permalink
tests/block_cloning: sync before write in fallback test
Browse files Browse the repository at this point in the history
We're still seeing this test fail intermittently (that is, the clone
happens), which must mean the write and the clone can still be happening
on different txgs.

It might be that there's still activity after the pool is created. So
here we force a sync before starting the write.

Sponsored-By: Klara Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #15359
  • Loading branch information
robn authored and behlendorf committed Oct 7, 2023
1 parent 3158b5d commit bf54da8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ log_must set_tunable64 TXG_TIMEOUT 5000

log_must zpool create -o feature@block_cloning=enabled $TESTPOOL $DISKS

log_must sync_pool $TESTPOOL true

log_must dd if=/dev/urandom of=/$TESTPOOL/file bs=128K count=4
log_must clonefile -f /$TESTPOOL/file /$TESTPOOL/clone 0 0 524288

Expand Down

0 comments on commit bf54da8

Please sign in to comment.