Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d4a5c252c59fb22d…
Commit: d4a5c252c59fb22d705fc0978ccf0d7cf2a69ba7
Parent: 2d630ea78aa430608f914e6da37fb98b051d86fa
Author: Bryn M. Reeves <bmr(a)redhat.com>
AuthorDate: Fri Dec 11 13:17:08 2015 +0000
Committer: Bryn M. Reeves <bmr(a)redhat.com>
CommitterDate: Thu Feb 25 16:40:59 2016 +0000
tests: install does not depend on lib/version-expected
The install target already depends on .tests-stamp - since this
in turn depends on lib/version-expected there is no need to have
this as a dependency of install.
---
test/Makefile.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/Makefile.in b/test/Makefile.in
index c69b3b6..fdae254 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -199,7 +199,7 @@ LIB_NOT = not
LIB_LINK_NOT = invalid fail should
LIB_SHARED = check aux inittest utils get lvm-wrapper
-install: .tests-stamp lib/paths-installed lib/version-expected
+install: .tests-stamp lib/paths-installed
@echo $(srcdir)
$(INSTALL_DIR) $(DATADIR)/{shell,api,lib} $(EXECDIR)
$(INSTALL_DATA) shell/*.sh $(DATADIR)/shell
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2d630ea78aa43060…
Commit: 2d630ea78aa430608f914e6da37fb98b051d86fa
Parent: 3dae4162293e385083025c85ec0e6307c48eb48e
Author: Bryn M. Reeves <bmr(a)redhat.com>
AuthorDate: Fri Nov 27 17:57:33 2015 +0000
Committer: Bryn M. Reeves <bmr(a)redhat.com>
CommitterDate: Thu Feb 25 16:40:58 2016 +0000
tests: add template tests/shell/dmstats-create.sh
Add a template for testing 'dmstats create' operations.
---
test/shell/dmstats-create.sh | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/test/shell/dmstats-create.sh b/test/shell/dmstats-create.sh
new file mode 100644
index 0000000..cb1671a
--- /dev/null
+++ b/test/shell/dmstats-create.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+# Copyright (C) 2009-2011 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/inittest
+
+# Don't attempt to test stats with driver < 4.33.00
+aux driver_at_least 4 33 || skip
+
+# ensure we can create devices (uses dmsetup, etc)
+#aux prepare_devs 5
+
+# FIXME: some actual tests here.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3dae4162293e3850…
Commit: 3dae4162293e385083025c85ec0e6307c48eb48e
Parent: 1f8fd5a1522b607255eb8e45572a22de85d6f2ae
Author: Bryn M. Reeves <bmr(a)redhat.com>
AuthorDate: Fri Nov 27 17:55:08 2015 +0000
Committer: Bryn M. Reeves <bmr(a)redhat.com>
CommitterDate: Thu Feb 25 16:40:58 2016 +0000
tests: add driver_at_least() to aux.sh
Add a function to test whether the running device-mapper driver
version is at least equal to some given version.
---
test/lib/aux.sh | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
index cfd3620..e517bc0 100644
--- a/test/lib/aux.sh
+++ b/test/lib/aux.sh
@@ -1232,6 +1232,21 @@ target_at_least() {
}
}
+# Check whether the kernel driver version is greater or equal
+# to the specified version. This can be used to skip tests on
+# kernels where they are known to not be supported.
+#
+# e.g. driver_at_least 4 33
+#
+driver_at_least() {
+ local version=$(dmsetup version | tail -1 2>/dev/null)
+ version=${version##*:}
+ version_at_least "$version" "$@" || {
+ echo "Found driver version $version, but requested $@." >&2
+ return 1
+ }
+}
+
have_thin() {
test "$THIN" = shared -o "$THIN" = internal || {
echo "Thin is not built-in." >&2
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c201ee09bdfdfcce…
Commit: c201ee09bdfdfccecd5975ee26537cf790b25e25
Parent: 04d34da706a596b7c1d7c5376fb42aa99374fc51
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Tue Feb 16 15:33:40 2016 -0600
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Thu Feb 25 09:14:10 2016 -0600
metadata: add fixme about code used only by liblvm
---
lib/metadata/metadata.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
index 20caab9..5a51782 100644
--- a/lib/metadata/metadata.c
+++ b/lib/metadata/metadata.c
@@ -749,6 +749,24 @@ bad:
}
/*
+ * FIXME: commands shifting to common code in toollib have left a large
+ * amount of code only used by liblvm. Either remove this by shifting
+ * liblvm to use toollib, or isolate all this code into a liblvm-specific
+ * source file. All the following and more are only used by liblvm:
+ *
+ * . vg_extend()
+ * . vg_extend_single_pv()
+ * . pvcreate_vol()
+ * . _pvcreate_check()
+ * . _pvcreate_write()
+ * . pvremove_many()
+ * . pvremove_single()
+ * . find_pv_by_name()
+ * . get_pvs()
+ * . the vg->pvs_to_write list and pv_to_write struct
+ */
+
+/*
* Extend a VG by a single PV / device path
*
* Parameters: