public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: wysochanski@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/test t-pvcreate-usage.sh Date: Wed, 30 Jun 2010 12:17:00 -0000 [thread overview] Message-ID: <20100630121757.18716.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2010-06-30 12:17:56 Modified files: test : t-pvcreate-usage.sh Log message: Update pvcreate tests for --metadataignore. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-usage.sh.diff?cvsroot=lvm2&r1=1.14&r2=1.15 --- LVM2/test/t-pvcreate-usage.sh 2009/10/05 20:55:57 1.14 +++ LVM2/test/t-pvcreate-usage.sh 2010/06/30 12:17:55 1.15 @@ -158,3 +158,34 @@ check_pv_field_ $dev1 pe_start 0 check_pv_field_ $dev2 pe_start 0 vgremove $vg + +echo test pvcreate --metadataignore +for pv_in_vg in 1 0; do +for mdacp in 1 2; do +for ignore in y n; do + echo pvcreate --metadataignore has proper mda_count and mda_used_count + pvcreate --metadatacopies $mdacp --metadataignore $ignore $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 vgcreate has proper vg_mda_count and vg_mda_used_count + if [ $pv_in_vg = 1 ]; then + vgcreate -c n "$vg" $dev1 $dev2 + check_vg_field_ $vg vg_mda_count $(($mdacp * 2)) + if [ $ignore = y ]; then + check_vg_field_ $vg vg_mda_used_count 1 + else + check_vg_field_ $vg vg_mda_used_count $(($mdacp * 2)) + fi + check_vg_field_ $vg vg_mda_copies unmanaged + vgremove $vg + fi +done +done +done
next reply other threads:[~2010-06-30 12:17 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-06-30 12:17 wysochanski [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-03-06 18:28 mbroz 2011-02-21 12:37 prajnoha 2009-02-22 19:32 mbroz
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=20100630121757.18716.qmail@sourceware.org \ --to=wysochanski@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).