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-lvcreate-usage.sh Date: Fri, 08 May 2009 21:50:00 -0000 [thread overview] Message-ID: <20090508215023.14892.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2009-05-08 21:50:22 Modified files: test : t-lvcreate-usage.sh Log message: Update tests for region_size. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvcreate-usage.sh.diff?cvsroot=lvm2&r1=1.11&r2=1.12 --- LVM2/test/t-lvcreate-usage.sh 2009/05/08 04:24:52 1.11 +++ LVM2/test/t-lvcreate-usage.sh 2009/05/08 21:50:20 1.12 @@ -13,7 +13,7 @@ . ./test-utils.sh -aux prepare_pvs 2 +aux prepare_pvs 4 aux pvcreate --metadatacopies 0 $dev1 vgcreate -cn $vg $devs @@ -48,10 +48,6 @@ not lvcreate -L 64M -n $lv -i129 $vg 2>err grep "^ Number of stripes (129) must be between 1 and 128\$" err -# 'lvcreate rejects an invalid regionsize (bz186013)' -not lvcreate -L 64M -n $lv -R0 $vg 2>err -grep "Non-zero region size must be supplied." err - # The case on lvdisplay output is to verify that the LV was not created. # 'lvcreate rejects an invalid stripe size' not lvcreate -L 64M -n $lv -i2 --stripesize 3 $vg 2>err @@ -84,3 +80,18 @@ lvremove -ff $vg vgchange -l 0 $vg +# regionsize must be +# - nonzero (bz186013) +# - a power of 2 and a multiple of page size +# - <= size of LV +not lvcreate -L 32M -n $lv -R0 $vg 2>err +grep "Non-zero region size must be supplied." err +not lvcreate -L 32M -n $lv -R 11k $vg +not lvcreate -L 32M -n $lv -R 1k $vg +lvcreate -L 32M -n $lv --regionsize 128M -m 1 $vg +check_lv_field_ $vg/$lv regionsize "32.00M" +lvremove -ff $vg +lvcreate -L 32M -n $lv --regionsize 4M -m 1 $vg +check_lv_field_ $vg/$lv regionsize "4.00M" +lvremove -ff $vg +
next reply other threads:[~2009-05-08 21:50 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-05-08 21:50 wysochanski [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-06-28 9:43 agk 2010-04-13 6:25 mornfall 2009-05-08 4:24 wysochanski 2008-11-10 12:37 mornfall 2008-09-30 17:50 mornfall
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=20090508215023.14892.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).