File: gen_blocks.sh

package info (click to toggle)
golang-github-rootless-containers-bypass4netns 0.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 596 kB
  • sloc: sh: 1,936; python: 542; makefile: 33
file content (18 lines) | stat: -rwxr-xr-x 346 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

cd $(dirname $0)

BLOCK_SIZES=(1 32 128 512)

for BLOCK_SIZE in ${BLOCK_SIZES[@]}
do
    dd if=/dev/urandom of=blk-${BLOCK_SIZE}k bs=1024 count=$BLOCK_SIZE
done

for BLOCK_SIZE in ${BLOCK_SIZES[@]}
do
    dd if=/dev/urandom of=blk-${BLOCK_SIZE}m bs=1048576 count=$BLOCK_SIZE
done

dd if=/dev/urandom of=blk-1g bs=1048576 count=1024