qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] block: filter filename when testing encrypted images
Date: Wed, 20 May 2015 16:13:46 +0100	[thread overview]
Message-ID: <20150520151346.GZ23989@redhat.com> (raw)
In-Reply-To: <20150520150551.GI4917@noname.redhat.com>

On Wed, May 20, 2015 at 05:05:51PM +0200, Kevin Wolf wrote:
> Am 20.05.2015 um 13:45 hat Daniel P. Berrange geschrieben:
> > qemu-io prints a warning message
> > 
> >  "Disk image '/home/berrange/src/virt/qemu/tests/qemu-iotests/scratch/t.qcow2' is encrypted."
> > 
> > when opening an encrypted image, which was mistakenly included
> > in the expected output for test 131. Add a filter which strips
> > this filename from the output data.
> > 
> > Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
> > ---
> >  tests/qemu-iotests/131.out       | 4 ----
> >  tests/qemu-iotests/common.filter | 3 ++-
> >  2 files changed, 2 insertions(+), 5 deletions(-)
> > 
> > diff --git a/tests/qemu-iotests/131.out b/tests/qemu-iotests/131.out
> > index 4eedb35..7141e4f 100644
> > --- a/tests/qemu-iotests/131.out
> > +++ b/tests/qemu-iotests/131.out
> > @@ -11,7 +11,6 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 encryption=on
> >  Encrypted images are deprecated
> >  Support for them will be removed in a future release.
> >  You can use 'qemu-img convert' to convert your image to an unencrypted one.
> > -Disk image '/home/berrange/src/virt/qemu/tests/qemu-iotests/scratch/t.qcow2' is encrypted.
> >  password:
> >  read 134217728/134217728 bytes at offset 0
> >  128 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
> 
> Usually we just apply _filter_testdir(), which leaves the message
> around, but replaces the variable part with "TEST_DIR". I think that
> would be better here, too, because it shows that qemu-io did indeed
> recognise the image as encrypted.
> 
> If you send a v2, I'll squash that into the original, buggy commit
> before sending a pull request.

Ok, will change that.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

      reply	other threads:[~2015-05-20 15:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20 11:45 [Qemu-devel] [PATCH] block: filter filename when testing encrypted images Daniel P. Berrange
2015-05-20 14:08 ` Eric Blake
2015-05-20 15:05 ` Kevin Wolf
2015-05-20 15:13   ` Daniel P. Berrange [this message]

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=20150520151346.GZ23989@redhat.com \
    --to=berrange@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.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: link
Be 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 NNTP newsgroup(s).