]> sourceware.org Git - glibc.git/commit
support: Fix detecting hole support on >2KB-block filesystems
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 4 Jun 2020 18:52:19 +0000 (20:52 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 4 Jun 2020 19:27:05 +0000 (21:27 +0200)
commit3f6e4fc4542b5b881906bf2f83eb4b8359b0dcd4
tree981baeb271875c2c8f28cd193f9f30e584a75e8c
parent6f10ff02cb04c2b1e031d7d3ba0f99e906699126
support: Fix detecting hole support on >2KB-block filesystems

When detecting hole support, we write at 16MiB, and filesystems will
typically need two levels of data to record that. On filesystems with
8KB block, the two indirection blocks will require a total of 16KB
overhead, thus 32 512-byte sectors.

Spotted on GNU/Hurd with a 4KB blocks filesystem, but also happens on Linux
with 4KB or 8KB blocks filesystems.

* support/support_descriptor_supports_holes.c
(support_descriptor_supports_holes): Set block_headroom to 32.
support/support_descriptor_supports_holes.c
This page took 0.036868 seconds and 5 git commands to generate.