Skip to content

Commit

Permalink
ZTS: Fix enospc_002_pos.ksh again
Browse files Browse the repository at this point in the history
This is a follow up commit for e03a41a which aimed to resolve
this same test failure.  The core "problem" here is that it takes
very little space to perform a clone/snapshot/bookmark, which
means if we want these commands to reliably fail the pool must
truely have exhausted all free space.

This commit increases the number of fill iterations to try and
consume every block which we can.  This still can't guarantee
the clone/snapshot/bookmark will fail, but it significantly
improves the odds.  The exception was kept since it's still
not a sure thing.

Reviewed-by: George Melikov <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Reviewed-by: Igor Kozhukhov <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#12903
  • Loading branch information
behlendorf authored and tonyhutter committed Feb 16, 2022
1 parent d1a0b15 commit d5db471
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ log_must zfs snapshot $TESTPOOL/$TESTFS@snap
#
log_note "Writing files until ENOSPC."

for i in $(seq 30); do
for i in $(seq 100); do
file_write -o create -f $TESTDIR/file.$i -b $BLOCKSZ \
-c $NUM_WRITES -d $DATA
ret=$?
Expand Down

0 comments on commit d5db471

Please sign in to comment.