mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
Add full preallocation (writing zeroes)
This commit is contained in:
parent
0f99873f60
commit
e641f20493
@ -50,7 +50,7 @@ if [ -f "${DATA}" ]; then
|
||||
GB=$(( (REQ + 1073741823)/1073741824 ))
|
||||
echo "INFO: Writing ${GB} GB of zeroes, please wait.."
|
||||
|
||||
dd if=/dev/zero of="${DATA}" seek="{OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes
|
||||
dd if=/dev/zero of="${DATA}" seek="${OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes
|
||||
|
||||
else
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user