All of lore.kernel.org
 help / color / mirror / Atom feed
* master - test: Fix metadata-zero-space with long VG names
@ 2019-11-06 15:21 Marian Csontos
  0 siblings, 0 replies; only message in thread
From: Marian Csontos @ 2019-11-06 15:21 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=8263e62b00959c2bef18dff7821b242aefd5547f
Commit:        8263e62b00959c2bef18dff7821b242aefd5547f
Parent:        c67a03727b427f7b6a1ae4375e0d51dfafe2ea42
Author:        Marian Csontos <mcsontos@redhat.com>
AuthorDate:    Thu Oct 24 13:55:23 2019 +0200
Committer:     Marian Csontos <mcsontos@redhat.com>
CommitterDate: Wed Nov 6 16:20:27 2019 +0100

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

---
 test/shell/metadata-zero-space.sh |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/test/shell/metadata-zero-space.sh b/test/shell/metadata-zero-space.sh
index f04de48..a7efdea 100644
--- a/test/shell/metadata-zero-space.sh
+++ b/test/shell/metadata-zero-space.sh
@@ -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
 



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-06 15:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06 15:21 master - test: Fix metadata-zero-space with long VG names Marian Csontos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.