master - test: Add process-each toollib tests.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=86dad329be2fa20a528066776aab77f26a29790c Commit: 86dad329be2fa20a528066776aab77f26a29790c Parent: 8dc5f42254b319430d02e2d0ca4cffd36b2cbaca Author: David Teigland <[email protected]> AuthorDate: Tue Oct 7 01:08:03 2014 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Tue Oct 7 01:15:43 2014 +0100
test: Add process-each toollib tests.
--- WHATS_NEW | 4 + test/shell/process-each-pv-nomda-all.sh | 60 ++ test/shell/process-each-pv-nomda.sh | 27 + test/shell/process-each-pv.sh | 1285 +++++++++++++++++++++++++++++++ test/shell/process-each-pvresize.sh | 561 ++++++++++++++ 5 files changed, 1937 insertions(+), 0 deletions(-)
WHATS_NEW +4 -0
@@ -1,5 +1,8 @@ Version 2.02.112 - ===================================== + Introduce WARN_ flags to control some metadata warning messages. + Use process_each_pv in vgreduce. + Refactor process_each_pv in toollib. Introduce single validation routine for pool chunk size. Support --yes like --force in vg/lvremove to skip y|n prompt. Support --yes with lvconvert --splitsnapshot.
@@ -14,6 +17,7 @@ Version 2.02.112 - Support lvconvert --splitcache and --uncache of cached LV. Option --cache has also shortcut -H (i.e. lvcreate -H). Refactor lvcreate code and better preserve --type argument. + Refactor process_each_lv in toollib. Refactor process_each_vg in toollib. Pools cannot be used as external origin. Use lv_update_and_reload() for snapshot reload.
test/shell/process-each-pv-nomda-all.sh new file +60 -0
60 lines not on this page · raw message
test/shell/process-each-pv-nomda.sh new file +27 -0
@@ -0,0 +1,27 @@ +#!/bin/sh +# Copyright (C) 2008-2013 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 + +test_description='Test process_each_pv with zero mda' + +. lib/inittest + +aux prepare_devs 2 + +pvcreate $dev1 --metadatacopies 0 +pvcreate $dev2 + +vgcreate $vg1 "$dev1" "$dev2" + +pvdisplay -a -C >err +cat err +grep $dev1 err +grep $dev2 err +
test/shell/process-each-pv.sh new file +1285 -0
1,285 lines not on this page · raw message
test/shell/process-each-pvresize.sh new file +561 -0
561 lines not on this page · raw message
device mapper library update
when I download LVM2.2.02.104.tgz source code, tar xvf ./configure;make;make install
then use lvcreate --version, the result display
[root at localhost ~]# lvcreate --version
LVM version: 2.02.104(2) (2013-11-13)
Library version: 1.02.79-RHEL6 (2013-10-23)
Driver version: 4.24.0
[root at localhost ~]#
why the Library version is not updated?
when I see the source code ,
include/configure.h:#define DM_LIB_VERSION "1.02.83 (2013-11-13)" lib/misc/configure.h:#define DM_LIB_VERSION "1.02.83 (2013-11-13)"
the version display is 1.02.83?
device mapper library update
Quoted 10 lines · lilofile
when I download LVM2.2.02.104.tgz source code, tar xvf ./configure;make;make install
then use lvcreate --version, the result display
[root at localhost ~]# lvcreate --version
LVM version: 2.02.104(2) (2013-11-13)
Library version: 1.02.79-RHEL6 (2013-10-23)
Driver version: 4.24.0
[root at localhost ~]#
Quoted 6 lines
why the Library version is not updated?
when I see the source code ,
include/configure.h:#defineDM_LIB_VERSION"1.02.83 (2013-11-13)" lib/misc/configure.h:#defineDM_LIB_VERSION"1.02.83 (2013-11-13)"the version display is 1.02.83?
Make sure you have proper configure line used, mainly checkthe library paths. This is the exact configure line used for official RHEL6 builds (considering you're now running with RHEL 6.5 and x86_64 arch):
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix= --bindir=/bin --sbindir=/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/lib64 --libexecdir=/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-lvm1_fallback --enable-fsadm --with-pool=internal --with-user= --with-group= --with-usrlibdir=/usr/lib64 --with-usrsbindir=/usr/sbin --with-udevdir=/lib/udev/rules.d --enable-udev-rule-exec-detection --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --enable-pkgconfig --enable-applib --enable-cmdlib --enable-dmeventd --enable-udev_sync --with-thin=internal --with-thin-check=/usr/sbin/thin_check --with-thin-dump=/usr/sbin/thin_dump --with-thin-repair=/usr/sbin/thin_repair --enable-lvmetad --with-cluster=internal --with-clvmd=cman --enable-cmirrord
Signature · 1 line
Peter