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-operation.sh Date: Mon, 21 Jul 2008 18:50:00 -0000 [thread overview] Message-ID: <20080721185011.7527.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2008-07-21 18:50:10 Modified files: test : t-pvcreate-operation.sh Log message: Add more pvcreate tests to validate writing lvm2 label using --labelsector. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-operation.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2 --- LVM2/test/t-pvcreate-operation.sh 2008/07/17 03:17:01 1.1 +++ LVM2/test/t-pvcreate-operation.sh 2008/07/21 18:50:10 1.2 @@ -66,6 +66,20 @@ pvremove -f $d2 && pvremove -f $d1' +for i in 0 1 2 3 +do + test_expect_success \ + "pvcreate (lvm2) succeeds writing LVM label at sector $i" \ + 'pvcreate --labelsector $i $d1 && + dd if=$d1 bs=512 skip=$i count=1 status=noxfer 2>&1 | strings | grep -q LABELONE; + test $? == 0 && + pvremove -f $d1' +done + +test_expect_failure \ + "pvcreate (lvm2) fails writing LVM label at sector 4" \ + 'pvcreate --labelsector 4 $d1' + test_done # Local Variables: # indent-tabs-mode: nil
next reply other threads:[~2008-07-21 18:50 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-07-21 18:50 wysochanski [this message] 2008-07-24 17:33 wysochanski 2008-08-01 15:44 zkabelac 2008-12-16 20:02 mbroz 2010-02-22 14:47 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=20080721185011.7527.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).