Enable BTRFS duplicate metadata

This commit is contained in:
Kroese 2023-04-13 20:46:49 +02:00 committed by GitHub
parent 6408b7d0ab
commit 7bd1498b6e

View File

@ -17,7 +17,7 @@ FILE="$IMG/data$DISK_SIZE.img"
if [ ! -f "$FILE" ]; then if [ ! -f "$FILE" ]; then
truncate -s "${NEW_SIZE}" "${FILE}" truncate -s "${NEW_SIZE}" "${FILE}"
mkfs.btrfs -q -L data -d single -m single "${FILE}" > /dev/null mkfs.btrfs -q -L data -d single -m dup "${FILE}" > /dev/null
#qemu-img convert -f raw -O qcow2 -o extended_l2=on,cluster_size=128k,compression_type=zstd,preallocation=metadata "$TMP" "$FILE" #qemu-img convert -f raw -O qcow2 -o extended_l2=on,cluster_size=128k,compression_type=zstd,preallocation=metadata "$TMP" "$FILE"
fi fi