All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/1] qemu-img: check block status of backing file when converting.
@ 2016-04-23  6:26 Ren Kimura
  2016-04-23  6:26 ` [Qemu-devel] [PATCH v4 1/1] " Ren Kimura
  0 siblings, 1 reply; 4+ messages in thread
From: Ren Kimura @ 2016-04-23  6:26 UTC (permalink / raw)
  To: mreitz; +Cc: kwolf, qemu-block, qemu-devel

I've just changed last patch to new one that uses loop iteration instead of recursion. https://lists.gnu.org/archive/html/qemu-block/2016-04/msg00584.html

At first, a head of chain has checked it's status by bdrv_get_block_status in "convert_iteration_sectors".
If this status is not BDRV_BLOCK_DATA nor BDRV_BLOCK_ZERO, then check backing files by using new function, get_backing_status.
This function iterates backing files chain and return the status BDRV_BLOCK_DATA, BDRV_BLOCK_ZERO or error(< 0) caused by bdrv_get_block_status.
When none of backing files has valid status(i.e. backing file which must have data doesn't exist), then return -1(< 0) and goto fail.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-27 15:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-23  6:26 [Qemu-devel] [PATCH v4 0/1] qemu-img: check block status of backing file when converting Ren Kimura
2016-04-23  6:26 ` [Qemu-devel] [PATCH v4 1/1] " Ren Kimura
2016-04-27 11:45   ` Max Reitz
2016-04-27 15:13     ` Ren Kimura

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.