summaryrefslogtreecommitdiffstats
path: root/test/shell
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2012-03-01 20:03:45 +0000
committerPetr Rockai <prockai@redhat.com>2012-03-01 20:03:45 +0000
commit8cf54e6e13e4c9b9d952548b523aac30583e7f8e (patch)
tree80a80ebda53fd5515ae3850f9841568a6639820b /test/shell
parent823268475cd6a1c48ca2d942e47181691b471bf2 (diff)
downloadlvm2-8cf54e6e13e4c9b9d952548b523aac30583e7f8e.tar.gz
lvm2-8cf54e6e13e4c9b9d952548b523aac30583e7f8e.tar.xz
lvm2-8cf54e6e13e4c9b9d952548b523aac30583e7f8e.zip
Add a regression test for the PSize bug in pvs/lvmetad.
Diffstat (limited to 'test/shell')
-rw-r--r--test/shell/lvmetad-pvs.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/shell/lvmetad-pvs.sh b/test/shell/lvmetad-pvs.sh
new file mode 100644
index 00000000..2b157b03
--- /dev/null
+++ b/test/shell/lvmetad-pvs.sh
@@ -0,0 +1,20 @@
+#!/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_devs 1 20000
+pvcreate $dev1
+pvs | grep $dev1
+
+# check for PV size overflows
+pvs | grep 19.53g
+pvs | not grep 16.00e