]> git.hungrycats.org Git - bees/commit
tempfile: clear FS_NOCOW_FL while setting FS_COMPR_FL
authorZygo Blaxell <bees@furryterror.org>
Sun, 29 Jun 2025 20:30:03 +0000 (16:30 -0400)
committerZygo Blaxell <bees@furryterror.org>
Mon, 30 Jun 2025 03:24:55 +0000 (23:24 -0400)
commit4039ef229e5fcbfa34dfee2fd601073e5005a5b7
treed00504d48c9aac0af697b6fcadb28dabdf37d8be
parente9d4aa4586654dffd53af53a21c5687c5dc51aea
tempfile: clear FS_NOCOW_FL while setting FS_COMPR_FL

FS_NOCOW_FL can be inherited from the subvol root directory, and it
conflicts with FS_COMPR_FL.

We can only dedupe when FS_NOCOW_FL is the same on src and dst, which
means we can only dedupe when FS_NOCOW_FL is clear, so we should clear
FS_NOCOW_FL on the temporary files we create for dedupe.

Fixes: https://github.com/Zygo/bees/issues/314
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees.cc