~ubuntu-branches/debian/sid/lvm2/sid

« back to all changes in this revision

Viewing changes to test/shell/vgchange-partial.sh

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2013-03-03 12:33:47 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20130303123347-smfwei6dodkdth55
Tags: 2.02.98-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
 
3
#
 
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.
 
7
#
 
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
 
11
 
 
12
. lib/test
 
13
 
 
14
aux prepare_vg 2
 
15
 
 
16
aux disable_dev "$dev1"
 
17
 
 
18
#
 
19
# Test for allowable metadata changes
 
20
# addtag_ARG
 
21
# deltag_ARG
 
22
vgchange --addtag foo $vg
 
23
vgchange --deltag foo $vg
 
24
 
 
25
#
 
26
# Test for disallowed metadata changes
 
27
#
 
28
# maxphysicalvolumes_ARG
 
29
not vgchange -p 10 $vg
 
30
 
 
31
# resizeable_ARG
 
32
not vgchange -x n $vg
 
33
 
 
34
# uuid_ARG
 
35
not vgchange -u $vg
 
36
 
 
37
# physicalextentsize_ARG
 
38
not vgchange -s 2M $vg
 
39
 
 
40
# clustered_ARG
 
41
not vgchange -c y $vg
 
42
 
 
43
# alloc_ARG
 
44
not vgchange --alloc anywhere $vg
 
45
 
 
46
# vgmetadatacopies_ARG
 
47
not vgchange --vgmetadatacopies 2 $vg
 
48
 
 
49
#
 
50
# Ensure that allowed args don't cause disallowed args to get through
 
51
#
 
52
not vgchange -p 10 --addtag foo $vg