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