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

tests: wipe fs signature manually in pvcreate-operation test

So that the next pvcreate that is called does not issue any
warnings/prompts about existing signature (when blkid wiping is used).
This commit is contained in:
Peter Rajnoha 2013-11-28 14:10:55 +01:00
parent c24b558c8c
commit 08bab406b5

View File

@ -23,6 +23,9 @@ do
not pvcreate -M$mdatype "$dev1" 2>err not pvcreate -M$mdatype "$dev1" 2>err
grep "Can't open "$dev1" exclusively. Mounted filesystem?" err grep "Can't open "$dev1" exclusively. Mounted filesystem?" err
umount "$dev1" umount "$dev1"
# wipe the filesystem signature for next
# pvcreate to not issue any prompts
dd if=/dev/zero of=$dev1 bs=1K count=2
fi fi
# pvcreate (lvm$mdatype) succeeds when run repeatedly (pv not in a vg) (bz178216) # pvcreate (lvm$mdatype) succeeds when run repeatedly (pv not in a vg) (bz178216)