From: wysochanski@sourceware.org <wysochanski@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/test lvm-utils.sh t-vgchange-usage.sh
Date: 16 Feb 2010 17:48:47 -0000 [thread overview]
Message-ID: <20100216174847.26309.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2010-02-16 17:48:46
Modified files:
test : lvm-utils.sh t-vgchange-usage.sh
Log message:
Add get_{pv|vg|lv}_field() nightly test helper functions.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/lvm-utils.sh.diff?cvsroot=lvm2&r1=1.19&r2=1.20
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-vgchange-usage.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2
--- LVM2/test/lvm-utils.sh 2010/01/11 15:43:19 1.19
+++ LVM2/test/lvm-utils.sh 2010/02/16 17:48:46 1.20
@@ -87,6 +87,28 @@
test $val1 = $val2
}
+
+get_pv_field() {
+ local pv=$1
+ local field=$2
+ local value
+ pvs --noheading -o $field $pv | sed 's/^ *//'
+}
+
+get_vg_field() {
+ local vg=$1
+ local field=$2
+ local value
+ vgs --noheading -o $field $vg | sed 's/^ *//'
+}
+
+get_lv_field() {
+ local lv=$1
+ local field=$2
+ local value
+ lvs --noheading -o $field $lv | sed 's/^ *//'
+}
+
check_vg_field_()
{
local vg=$1;
--- LVM2/test/t-vgchange-usage.sh 2008/11/11 15:29:24 1.1
+++ LVM2/test/t-vgchange-usage.sh 2010/02/16 17:48:46 1.2
@@ -17,13 +17,6 @@
pvcreate --metadatacopies 0 $dev1
vgcreate $vg $devs
-get_vg_field() {
- local vg=$1
- local field=$2
- local value
- vgs --noheading -o $field $vg | sed 's/^ *//'
-}
-
vgdisplay $vg
# vgchange -p MaxPhysicalVolumes (bz202232)
reply other threads:[~2010-02-16 17:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100216174847.26309.qmail@sourceware.org \
--to=wysochanski@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.