This commit is contained in:
Zsolt Ero
2023-12-18 04:19:17 +01:00
parent a242734ae4
commit 5bb4c9aae2
2 changed files with 4 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ from pathlib import Path
import click
# btrfs cannot shrink smaller than about 268 MB
SMALLEST_SIZE = 270_000_000
# btrfs cannot shrink smaller than about 256 MiB
SMALLEST_SIZE = 256 * 1024 * 1024
@click.command()

View File

@@ -42,8 +42,8 @@ sudo chown ofm:ofm -R mnt_rw mnt_rw2
grep fixed extract_out.log > dedupl_fixed.log || true
# we need to extract, delete dedupl and rsync onto a new partition
# otherwise the partition image stays big
# Unfortunately, by deleting files from the btrfs partition, the size _grows_.
# So we need to rsync onto a new partition.
rsync -avH mnt_rw/extract/ mnt_rw2/extract/ > rsync_out.log 2> rsync_err.log