1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

test: Minimize data written by metadata-zero-space

The test is checking only 2 megabytes, but is rewriting much more. Bad
for limited ramdisk.
This commit is contained in:
Marian Csontos 2019-10-09 15:11:03 +02:00
parent 53b97b146d
commit df26b73b8e

View File

@ -21,7 +21,8 @@ get_devs
# Fill with random data so if the space between metadata
# copies are not zeroed the grep for zeros will fail.
dd if=/dev/urandom of="$dev1" bs=1M || true
dd if=/dev/urandom of="$dev1" bs=1M count=1 || true
dd if=/dev/urandom of="$dev1" bs=1M skip=15 count=1 || true
pvcreate --pvmetadatacopies 2 "$dev1"