qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: Jeff Cody <jcody@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
	Markus Armbruster <armbru@redhat.com>,
	stefanha@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 4/5] block: cow - used QEMU_PACKED for on-disk structures
Date: Wed, 25 Sep 2013 12:39:48 -0700	[thread overview]
Message-ID: <52433C04.3060101@twiddle.net> (raw)
In-Reply-To: <20130925190100.GD5035@localhost.localdomain>

On 09/25/2013 12:01 PM, Jeff Cody wrote:
> It is from UML, right?  Is there an official spec that is still around
> (most of the links I have found suffer from link rot)?  The closest I
> could find to a spec were old UML patches for x86_64 that cleaned up
> some data types, so that the following was defined:
> 
> struct cow_header_v2 {                                                                                                    
>    __u32 magic;
>    __u32 version;
>    char backing_file[PATH_LEN_V2];
>    time_t mtime;
>    __u64 size;
>    int sectorsize;
> };
> 
> That remains ambiguous, although given the era I suppose it could be
> argued that 32-bit architecture and alignment is assumed.  But if this
> is the original spec, then it seems like a non-portable one.

Indeed.  Not just the potential padding there, but of course
the size of time_t varies between hosts.  And since we use
an int32_t not time_t, we're not even necessarily compatible
with UML.


r~

  reply	other threads:[~2013-09-25 19:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-19 18:43 [Qemu-devel] [PATCH 0/5] block: use QEMU_PACKED for on-disk structures Jeff Cody
2013-09-19 18:43 ` [Qemu-devel] [PATCH 1/5] block: vdi - " Jeff Cody
2013-09-19 18:43 ` [Qemu-devel] [PATCH 2/5] block: vpc " Jeff Cody
2013-09-19 18:43 ` [Qemu-devel] [PATCH 3/5] block: qcow2 - used " Jeff Cody
2013-09-19 18:43 ` [Qemu-devel] [PATCH 4/5] block: cow " Jeff Cody
2013-09-19 19:01   ` Richard Henderson
2013-09-20  4:18     ` Jeff Cody
2013-09-20  6:23       ` Markus Armbruster
2013-09-25 15:12         ` Jeff Cody
2013-09-25 17:25           ` Kevin Wolf
2013-09-25 19:01             ` Jeff Cody
2013-09-25 19:39               ` Richard Henderson [this message]
2013-09-19 18:43 ` [Qemu-devel] [PATCH 5/5] block: qed - use " Jeff Cody
2013-09-20  8:07 ` [Qemu-devel] [PATCH 0/5] block: " Kevin Wolf

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=52433C04.3060101@twiddle.net \
    --to=rth@twiddle.net \
    --cc=armbru@redhat.com \
    --cc=jcody@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /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).