qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5 2/9] dump: Add API to write header of flatten


From: Qiao Nuohan
Subject: Re: [Qemu-devel] [PATCH v5 2/9] dump: Add API to write header of flatten format
Date: Tue, 16 Jul 2013 11:50:11 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120607 Thunderbird/10.0.5

On 07/16/2013 10:06 AM, Stefan Hajnoczi wrote:
On Tue, Jul 09, 2013 at 03:30:07PM +0800, Qiao Nuohan wrote:
+static int write_start_flat_header(int fd)
+{
+    char buf[MAX_SIZE_MDF_HEADER];
+    MakedumpfileHeader mh;

Why is buf[] necessary?  You can write mh directly.


The size of header should be MAX_SIZE_MDF_HEADER not "sizeof(mh)". So the buf[]
is used to fill the gap between mh and the first MakedumpfileDataHeader.

--
Regards
Qiao Nuohan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]