diff options
author | Dan Robertson <dan@dlrobertson.com> | 2021-06-24 22:11:18 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-16 19:47:39 -0500 |
commit | 2b5258e7ad70f0f063e16b97469f64e26327608c (patch) | |
tree | 8d3fcfc3152748f5c50955e7e6c07bc31f9e3e36 | |
parent | 9369486a24fcf2d3297d2d5a9dab7939059c3270 (diff) |
generic/103: increase reserved bytes for bcachefs
The bcachefs btree nodes are quite large. If we only reserve 512 bytes
we hit an intermittent failure where the fallocate that is intented to
fill the available space triggers a btree node split and the exente update
is interrupted. The retry of the extent update will fail because the
new amount of available space is less than that of the request.
Signed-off-by: Dan Robertson <dan@dlrobertson.com>
-rwxr-xr-x | tests/generic/103 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/generic/103 b/tests/generic/103 index fd650ec9..329818eb 100755 --- a/tests/generic/103 +++ b/tests/generic/103 @@ -38,6 +38,13 @@ _consume_freesp() left=$((left + avail / 1024000)) fi + if [ $FSTYP = "bcachefs" ]; then + # The bcachefs btree nodes are quite large. If the fallocate + # triggers a split leaf of a btree node, we'll need more + # than 512 kept in reserve. + left=1024 + fi + filesizekb=$((avail / 1024 - $left)) $XFS_IO_PROG -fc "falloc 0 ${filesizekb}k" $file } |