1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: more duplicate testing

This commit is contained in:
Zdenek Kabelac 2015-04-02 12:42:56 +02:00
parent 53ef14fca0
commit 6d1c9a0eb8

View File

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2011 Red Hat, Inc. All rights reserved.
# Copyright (C) 2011-2015 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
@ -15,6 +15,10 @@
aux prepare_devs 3
pvcreate "$dev1"
dd if="$dev1" of=backup_dev1 bs=256K count=1
vgcreate --metadatasize 128k $vg1 "$dev1"
# copy mda
@ -22,4 +26,12 @@ dd if="$dev1" of="$dev2" bs=256K count=1
dd if="$dev1" of="$dev3" bs=256K count=1
pvs "$dev3" -o pv_uuid
vgs $vg1
dd if=backup_dev1 of="$dev3" bs=256K count=1
pvs
#-vvvv
# TODO: Surely needs more inspecition about correct
# behavior for such case
# vgs $vg1