From: wysochanski@sourceware.org <wysochanski@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/test t-vgextend-usage.sh
Date: 30 Jun 2010 13:05:00 -0000 [thread overview]
Message-ID: <20100630130500.14565.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2010-06-30 13:04:59
Modified files:
test : t-vgextend-usage.sh
Log message:
Update nightly tests for vgextend --metadataignore.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-vgextend-usage.sh.diff?cvsroot=lvm2&r1=1.3&r2=1.4
--- LVM2/test/t-vgextend-usage.sh 2009/10/31 16:43:07 1.3
+++ LVM2/test/t-vgextend-usage.sh 2010/06/30 13:04:59 1.4
@@ -99,3 +99,31 @@
check_pv_field_ $dev3 vg_name $vg1
vgremove -f $vg1
pvremove -f $dev1 $dev2 $dev3
+
+echo test vgextend --metadataignore
+for mdacp in 1 2; do
+for ignore in y n; do
+ echo vgextend --metadataignore has proper mda_count and mda_used_count
+ vgcreate $vg $dev3
+ vgextend --metadataignore $ignore --pvmetadatacopies $mdacp $vg $dev1 $dev2
+ check_pv_field_ $dev1 pv_mda_count $mdacp
+ check_pv_field_ $dev2 pv_mda_count $mdacp
+ if [ $ignore = y ]; then
+ check_pv_field_ $dev1 pv_mda_used_count 0
+ check_pv_field_ $dev2 pv_mda_used_count 0
+ else
+ check_pv_field_ $dev1 pv_mda_used_count $mdacp
+ check_pv_field_ $dev2 pv_mda_used_count $mdacp
+ fi
+ echo vg has proper vg_mda_count and vg_mda_used_count
+ check_vg_field_ $vg vg_mda_count $(($mdacp * 2 + 1))
+ if [ $ignore = y ]; then
+ check_vg_field_ $vg vg_mda_used_count 1
+ else
+ check_vg_field_ $vg vg_mda_used_count $(($mdacp * 2 + 1))
+ fi
+ check_vg_field_ $vg vg_mda_copies unmanaged
+ vgremove $vg
+ pvremove -ff $dev1 $dev2 $dev3
+done
+done
next reply other threads:[~2010-06-30 13:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-30 13:05 wysochanski [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-10-05 20:53 LVM2/test t-vgextend-usage.sh wysochanski
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=20100630130500.14565.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.