2
# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
4
# This copyrighted material is made available to anyone wishing to use,
5
# modify, copy, or redistribute it subject to the terms and conditions
6
# of the GNU General Public License v.2.
8
# You should have received a copy of the GNU General Public License
9
# along with this program; if not, write to the Free Software Foundation,
10
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
aux disable_dev "$dev1"
19
# Test for allowable metadata changes
22
vgchange --addtag foo $vg
23
vgchange --deltag foo $vg
26
# Test for disallowed metadata changes
28
# maxphysicalvolumes_ARG
29
not vgchange -p 10 $vg
37
# physicalextentsize_ARG
38
not vgchange -s 2M $vg
44
not vgchange --alloc anywhere $vg
46
# vgmetadatacopies_ARG
47
not vgchange --vgmetadatacopies 2 $vg
50
# Ensure that allowed args don't cause disallowed args to get through
52
not vgchange -p 10 --addtag foo $vg