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

test: Fix metadata-zero-space with long VG names

This commit is contained in:
Marian Csontos 2019-10-24 13:55:23 +02:00
parent c67a03727b
commit 8263e62b00

View File

@ -41,11 +41,13 @@ ls -l meta.txt
head -n 100 meta.txt
grep -A4 -B4 '01200:' meta.txt
grep -B1 "$vg " meta.txt > meta.vg
_vg="$vg "
_vg="${_vg:0:16}"
grep -B1 "$_vg" meta.txt > meta.vg
cat meta.vg
grep -v $vg meta.vg > meta.zeros
grep -v "$_vg" meta.vg > meta.zeros
cat meta.zeros
@ -73,11 +75,11 @@ 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
grep -v $vg meta.vg > meta.zeros
grep -v "$_vg" meta.vg > meta.zeros
cat meta.zeros