From ecb14adf554fddc53e091cce2e99c9ab5b8f3ce6 Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Tue, 5 Nov 2024 21:10:21 +0100 Subject: [PATCH] give btrfs enough space to dedupe and balance --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index ef795b4..2475449 100755 --- a/build.sh +++ b/build.sh @@ -107,7 +107,7 @@ if $OUTPUT_IS_BTRFS_SUBVOLUME; then btrfs send --compressed-data -f "$OUTPUT.btrfs" "$OUTPUT.export" btrfs subvolume delete "$OUTPUT.export" SIZE=$(stat --format %s "$OUTPUT.btrfs") # the actual size of all data - SIZE=$((SIZE+268435456)) # 256M slack + SIZE=$((SIZE+2147483648)) # 2G slack -- this needs to be sufficient for our deduplication and balancing run. We'll shrink this way down later. else SIZE=$((SIZE+4294967296)) # 4G slack (our guess is less precise without btrfs) fi