Re: [libvirt] [PATCH] Compressed save image format for Qemu.

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

 



On Wed, 2009-08-12 at 12:04 +0100, Daniel P. Berrange wrote:
> On Tue, Aug 11, 2009 at 01:25:59PM +0200, Chris Lalancette wrote:

> >  struct qemud_save_header {
> >      char magic[sizeof(QEMUD_SAVE_MAGIC)-1];
> >      int version;
> >      int xml_len;
> >      int was_running;
> > -    int unused[16];
> > +    char compressed;
> > +    int unused[15];
> >  };
> 
> Little mistake here - you removed sizeof(int) bytes, but only
> added sizeof(char) replacement.

struct alignment will cause padding to be added between the fields.

Cheers,
Mark.

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]