summaryrefslogtreecommitdiffstats
path: root/test/shell
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2012-03-16 10:43:52 +0000
committerPetr Rockai <prockai@redhat.com>2012-03-16 10:43:52 +0000
commit7720ed7037c26d59437648f708d4fadff46221f2 (patch)
treef4a3fcd7bd11dd467de858766595ae585c1e74c4 /test/shell
parentdc7b1640edea796ff236be8594e5278383474c53 (diff)
downloadlvm2-7720ed7037c26d59437648f708d4fadff46221f2.tar.gz
lvm2-7720ed7037c26d59437648f708d4fadff46221f2.tar.xz
lvm2-7720ed7037c26d59437648f708d4fadff46221f2.zip
Fix a regression in handling --major/--minor arguments to lvcreate & lvchange,
by allowing arg_int_value to be used with groupable options.
Diffstat (limited to 'test/shell')
-rw-r--r--test/shell/activate-minor.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/shell/activate-minor.sh b/test/shell/activate-minor.sh
new file mode 100644
index 00000000..63d70bbe
--- /dev/null
+++ b/test/shell/activate-minor.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+# Copyright (C) 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+. lib/test
+
+aux prepare_vg 2
+lvcreate -a n --zero n -l 1 -n foo $vg
+lvchange $vg/foo -My --major=255 --minor=123
+lvchange $vg/foo -a y
+dmsetup info $vg-foo | tee info
+grep "254, 123" info