OSDN Git Service

qcow2: Keep unknown header extension when rewriting header
authorKevin Wolf <kwolf@redhat.com>
Thu, 2 Feb 2012 13:52:08 +0000 (14:52 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 9 Feb 2012 15:17:51 +0000 (16:17 +0100)
commit75bab85ca01876f912caf46f5fcb4ca8d9a50584
tree71d45135a865bd82573f25fa688abbac7c01fef4
parente24e49e6194626e4ec9f1aecce6d6a6847320bce
qcow2: Keep unknown header extension when rewriting header

If we want header extensions to work as compatible extensions, we can't
destroy yet unknown header extensions when rewriting the header (e.g.
for changing the backing file). Save all unknown header extensions in a
list of blobs and include them in a new header.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c
block/qcow2.h