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 lvm-utils.sh t-pvcreate-usage.sh Date: Fri, 08 May 2009 06:10:00 -0000 [thread overview] Message-ID: <20090508061048.20292.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2009-05-08 06:10:47 Modified files: test : lvm-utils.sh t-pvcreate-usage.sh Log message: Add tests to check pv_mda_size and vg_mda_size. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/lvm-utils.sh.diff?cvsroot=lvm2&r1=1.17&r2=1.18 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-usage.sh.diff?cvsroot=lvm2&r1=1.9&r2=1.10 --- LVM2/test/lvm-utils.sh 2009/01/10 12:19:41 1.17 +++ LVM2/test/lvm-utils.sh 2009/05/08 06:10:45 1.18 @@ -50,6 +50,26 @@ return 0; } +compare_two_fields_() +{ + local cmd1=$1; + local obj1=$2; + local field1=$3; + local cmd2=$4; + local obj2=$5; + local field2=$6; + local val1; + local val2; + + val1=$($cmd1 --noheadings -o $field1 $obj1) + val2=$($cmd2 --noheadings -o $field2 $obj2) +if test "$verbose" = "t" +then + echo "compare_two_fields_ $obj1($field1): $val1 $obj2($field2): $val2" +fi + test $val1 = $val2 +} + compare_vg_field_() { local vg1=$1; --- LVM2/test/t-pvcreate-usage.sh 2009/05/07 12:11:51 1.9 +++ LVM2/test/t-pvcreate-usage.sh 2009/05/08 06:10:45 1.10 @@ -29,6 +29,13 @@ pvcreate --metadatasize 0 $dev1 pvremove $dev1 +#Verify vg_mda_size is smaller pv_mda_size +pvcreate --metadatasize 512K $dev1 +pvcreate --metadatasize 96K $dev2 +vgcreate $vg $dev1 $dev2 +compare_two_fields_ vgs $vg vg_mda_size pvs $dev2 pv_mda_size +vgremove -ff $vg + # x. metadatasize too large # For some reason we allow this, even though there's no room for data? ##COMM 'pvcreate rejects metadatasize too large'
reply other threads:[~2009-05-08 6:10 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=20090508061048.20292.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).