From: Stefan Hajnoczi <stefanha@redhat.com>
To: Maria Kustova <maxa@catit.be>
Cc: kwolf@redhat.com, famz@redhat.com, qemu-devel@nongnu.org,
Maria Kustova <maria.k@catit.be>
Subject: Re: [Qemu-devel] [PATCH V3 4/5] layout: Generator of fuzzed qcow2 images
Date: Fri, 18 Jul 2014 13:11:47 +0100 [thread overview]
Message-ID: <20140718121147.GE2685@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <7ef10831de23421f2af9c035c29dcae58a5ac400.1405538416.git.maria.k@catit.be>
[-- Attachment #1: Type: text/plain, Size: 1193 bytes --]
On Wed, Jul 16, 2014 at 11:49:38PM +0400, Maria Kustova wrote:
> + @staticmethod
> + def _header(cluster_bits, img_size, backing_file_name=None):
> + """Generate a random valid header"""
> + meta_header = [
> + ['>4s', 0, "QFI\xfb", 'magic'],
> + ['>I', 4, random.randint(2, 3), 'version'],
> + ['>Q', 8, 0, 'backing_file_offset'],
> + ['>I', 16, 0, 'backing_file_size'],
> + ['>I', 20, cluster_bits, 'cluster_bits'],
> + ['>Q', 24, img_size, 'size'],
> + ['>I', 32, 0, 'crypt_method'],
> + ['>I', 36, 0, 'l1_size'],
> + ['>Q', 40, 0, 'l1_table_offset'],
> + ['>Q', 48, 0, 'refcount_table_offset'],
> + ['>I', 56, 0, 'refcount_table_clusters'],
> + ['>I', 60, 0, 'nb_snapshots'],
> + ['>Q', 64, 0, 'snapshots_offset'],
> + ['>Q', 72, 0, 'incompatible_features'],
> + ['>Q', 80, 0, 'compatible_features'],
> + ['>Q', 88, 0, 'autoclear_features'],
> + # Only refcount_order = 4 is supported by current (07.2014)
> + # implementaation of QEMU
s/implementaation/implementation/
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2014-07-18 12:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-16 19:49 [Qemu-devel] [PATCH V3 0/5] tests: Add the image fuzzer with qcow2 support Maria Kustova
2014-07-16 19:49 ` [Qemu-devel] [PATCH V3 1/5] docs: Specification for the image fuzzer Maria Kustova
2014-07-16 19:49 ` [Qemu-devel] [PATCH V3 2/5] runner: Tool for fuzz tests execution Maria Kustova
2014-07-18 8:44 ` Stefan Hajnoczi
2014-07-16 19:49 ` [Qemu-devel] [PATCH V3 3/5] fuzz: Fuzzing functions for qcow2 images Maria Kustova
2014-07-18 9:26 ` Stefan Hajnoczi
2014-07-16 19:49 ` [Qemu-devel] [PATCH V3 4/5] layout: Generator of fuzzed " Maria Kustova
2014-07-18 12:11 ` Stefan Hajnoczi [this message]
2014-07-16 19:49 ` [Qemu-devel] [PATCH V3 5/5] package: Public API for image-fuzzer/runner/runner.py Maria Kustova
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=20140718121147.GE2685@stefanha-thinkpad.redhat.com \
--to=stefanha@redhat.com \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=maria.k@catit.be \
--cc=maxa@catit.be \
--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).