]> sourceware.org Git - lvm2.git/commitdiff
Add a regression test for the PSize bug in pvs/lvmetad.
authorPetr Rockai <prockai@redhat.com>
Thu, 1 Mar 2012 20:03:45 +0000 (20:03 +0000)
committerPetr Rockai <prockai@redhat.com>
Thu, 1 Mar 2012 20:03:45 +0000 (20:03 +0000)
test/shell/lvmetad-pvs.sh [new file with mode: 0644]

diff --git a/test/shell/lvmetad-pvs.sh b/test/shell/lvmetad-pvs.sh
new file mode 100644 (file)
index 0000000..2b157b0
--- /dev/null
@@ -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
This page took 0.030858 seconds and 5 git commands to generate.