mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Format to btrfs instead of ext4
This commit is contained in:
parent
55b122d9a3
commit
cf29af3d7f
3
run.sh
3
run.sh
@ -19,7 +19,8 @@ FILE="$IMG/system.img"
|
|||||||
FILE="$IMG/data.img"
|
FILE="$IMG/data.img"
|
||||||
if [ ! -f "$FILE" ]; then
|
if [ ! -f "$FILE" ]; then
|
||||||
truncate -s "$DISK_SIZE" "$FILE"
|
truncate -s "$DISK_SIZE" "$FILE"
|
||||||
mkfs.ext4 -q $FILE
|
mkfs.btrfs -q -L data -d single -m single "$FILE" > /dev/null
|
||||||
|
#qemu-img convert -f raw -O qcow2 -o extended_l2=on,cluster_size=128k,compression_type=zstd,preallocation=metadata "$TMP" "$FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -f "$FILE" ] && echo "ERROR: Synology DSM data-image does not exist ($FILE)" && exit 83
|
[ ! -f "$FILE" ] && echo "ERROR: Synology DSM data-image does not exist ($FILE)" && exit 83
|
||||||
|
Loading…
x
Reference in New Issue
Block a user