blob: d019d70209bf1d620148198c93e1a217e444fc5b (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh -e
name="$1"
size="$2"
truncate -s "$size" "$name".raw
mkfs.ext4 -b 4096 -d "$name" -F -L `basename "$name"` -O ^huge_file -q -U random "$name".raw
qemu-img convert -f raw -O qcow2 -c -o compression_type=zstd "$name".raw "$name".qcow2
exec rm -f "$name".raw
|