Unverified Commit 30c2163c authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Write random

parent 958dbad8
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -48,9 +48,9 @@ if [ -f "${DATA}" ]; then
      if [ "$ALLOCATE" = "Z" ]; then

        GB=$(( (REQ + 1073741823)/1073741824 ))
        echo "INFO: Filling ${GB} GB of space, please wait.." > /dev/null
        echo "INFO: Writing ${GB} GB of random data, please wait.."

        dd if=/dev/urandom 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 status=none

      else

@@ -92,9 +92,9 @@ if [ ! -f "${DATA}" ]; then

    if [ "$ALLOCATE" = "Z" ]; then

      echo "INFO: Filling ${DISK_SIZE} of space, please wait.."
      echo "INFO: Writing ${DISK_SIZE} of random data, please wait.."

      dd if=/dev/urandom 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 status=none

    else