Skip to contentSkip to conversation

master - test: Minimize data written by metadata-zero-space

PATCH Marian Csontos 1 participant 1 message Oct 9, 2019

lore
Share & tools
lore
#0 lore raw
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
index 1bd1eef..d037ab2 100644
@@ -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"