1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00

tests: metadata-zero-space long vgnames

In the hex dump output, grep for the vgname
followed by one space.  This allows for test pids
with up to seven digits, which are used to contruct
the variable vgname used by the test.  Otherwise
the long vgname wraps to the next line and fails to
match in grep.
This commit is contained in:
David Teigland 2019-10-16 09:46:48 -05:00
parent 998e7b1075
commit 55bf692bff

View File

@ -39,9 +39,9 @@ xxd meta.raw > meta.txt
# to help debug if the next grep fails
ls -l meta.txt
head -n 100 meta.txt
grep -A4 -B4 1200 meta.txt
grep -A4 -B4 '01200:' meta.txt
grep -B1 "$vg {" meta.txt > meta.vg
grep -B1 "$vg " meta.txt > meta.vg
cat meta.vg
@ -73,7 +73,7 @@ dd if="$dev1" of=meta.raw bs=1M seek=15 count=1
xxd meta.raw > meta.txt
grep -B1 "$vg {" meta.txt > meta.vg
grep -B1 "$vg " meta.txt > meta.vg
cat meta.vg