diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2016-03-21 16:21:30 +0100 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2016-03-21 16:21:30 +0100 |
commit | cc57cd39ab0e47a3e0fc6fc81c378c4d4d292093 (patch) | |
tree | 77fae4469ce0ff21306580ff686e35c8dc8184e3 | |
parent | 8fad9b9e5d219861fc1f758216fb446cffe3817f (diff) | |
download | lvm2-cc57cd39ab0e47a3e0fc6fc81c378c4d4d292093.tar.gz |
tests: add vg-check-devs-used.sh
-rw-r--r-- | test/shell/vg-check-devs-used.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/shell/vg-check-devs-used.sh b/test/shell/vg-check-devs-used.sh new file mode 100644 index 000000000..b36822753 --- /dev/null +++ b/test/shell/vg-check-devs-used.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# Copyright (C) 2008-2012 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 +# of the GNU General Public License v.2. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +SKIP_WITH_LVMPOLLD=1 + +. lib/inittest + +aux prepare_devs 3 8 + +vgcreate $vg $dev1 $dev2 +lvcreate -l100%FREE -n $lv $vg +dd if="$dev1" of="$dev3" bs=1M +pvs --config "devices/global_filter = [ \"a|$dev2|\", \"a|$dev3|\", \"r|.*|\" ]" 2>err +grep "WARNING: Device mismatch detected for $vg/$lv which is accessing $dev1 instead of $dev3" err + +vgremove -ff $vg |