Searched hist:f6801b83d0e77ca025867800d805ee80f6bda938 (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | block.c | diff f6801b83d0e77ca025867800d805ee80f6bda938 Tue Mar 27 15:30:19 CDT 2012 Jeff Cody <jcody@redhat.com> block: bdrv_append() fixes
A few fixups for bdrv_append():
The new bs (bs_new) passed into bdrv_append() should be anonymous. Rather than call bdrv_make_anon() to enforce this, use an assert to catch when a caller is passing in a bs_new that is not anonymous.
Also, the new top layer should have its backing_format reflect the original top's format.
And last, after the swap of bs contents, the device_name will have been copied down. This needs to be cleared to reflect the anonymity of the bs that was pushed down.
Signed-off-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|