master - test: Minimize data written by metadata-zero-space
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=df26b73b8e4355df7f6d4d664edad2b86991b352 Commit: df26b73b8e4355df7f6d4d664edad2b86991b352 Parent: 53b97b146df4de99207c580c1304d016832e318b Author: Marian Csontos <[email protected]> AuthorDate: Wed Oct 9 15:11:03 2019 +0200 Committer: Marian Csontos <[email protected]> CommitterDate: Wed Oct 9 15:11:03 2019 +0200
test: Minimize data written by metadata-zero-space
The test is checking only 2 megabytes, but is rewriting much more. Bad for limited ramdisk.
--- test/shell/metadata-zero-space.sh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
test/shell/metadata-zero-space.sh +2 -1
@@ -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"