]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
support --cow switch to preserve CoW on btrfs
authorEric Wong <e@80x24.org>
Tue, 26 Aug 2025 19:50:52 +0000 (19:50 +0000)
committerEric Wong <e@80x24.org>
Thu, 28 Aug 2025 18:48:23 +0000 (18:48 +0000)
commitdb671788b33d606b9014479c4530194c6759d7b5
tree08afd420d134af68d0fd390df99c5d84c7302067
parent0d90aee9f3c031f050a8a21f325108f875d0c0f6
support --cow switch to preserve CoW on btrfs

We currently unconditionally disable CoW on btrfs to reduce
fragmentation.  Unfortunately, disabling CoW may cause data
corruption on all btrfs RAID levels, so provide an option to
keep it enabled.  In the future, CoW may become the default on
btrfs (matching the FS default) even if fragmentation is awful.
17 files changed:
MANIFEST
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/MiscIdx.pm
lib/PublicInbox/Over.pm
lib/PublicInbox/SQLiteUtil.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/Syscall.pm
lib/PublicInbox/Xapcmd.pm
script/public-inbox-cindex
script/public-inbox-convert
script/public-inbox-extindex
script/public-inbox-index
script/public-inbox-init
script/public-inbox-xcpdb
t/cow.t [new file with mode: 0644]
t/extsearch.t
t/nodatacow.t