]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
compact: support --cow/--no-cow switch
authorEric Wong <e@80x24.org>
Tue, 16 Sep 2025 21:42:58 +0000 (21:42 +0000)
committerEric Wong <e@80x24.org>
Wed, 17 Sep 2025 21:37:32 +0000 (21:37 +0000)
Users on btrfs may prefer to sacrifice performance for data
safety with RAID.  Allow them to do so by supporting the --cow
switch.  I missed this when I added --cow support to the other
commands.

Fixes: db671788 (support --cow switch to preserve CoW on btrfs, 2025-08-26)
script/public-inbox-compact

index 1062be5a060f752a749b67d15be6053d6cf645ea..8d51d92e0b2a685939069ceabb22190486b6b8da 100755 (executable)
@@ -19,7 +19,7 @@ See public-inbox-compact(1) man page for full documentation.
 EOF
 GetOptions($opt, qw(all C=s@ help|h),
        # compact options:
-       qw(jobs|j=i quiet|q blocksize|b=s no-full|n fuller|F),
+       qw(jobs|j=i quiet|q blocksize|b=s no-full|n fuller|F cow!),
 ) or die $help;
 if ($opt->{help}) { print $help; exit 0 };