Re: [Qemu-devel] [PATCH 1/2] block: add dirty flag status to qemu-img

2012-01-11 Thread Kevin Wolf
Am 11.01.2012 15:35, schrieb Stefan Hajnoczi: > On Sat, Dec 31, 2011 at 9:06 AM, Dong Xu Wang > wrote: >> +int bdrv_is_dirty(BlockDriverState *bs) > > bool would be nicer instead of int. Traditionally we used int but C99 > has been around for a long time now and it's more appropriate. > >> diff

Re: [Qemu-devel] [PATCH 1/2] block: add dirty flag status to qemu-img

2012-01-11 Thread Stefan Hajnoczi
On Sat, Dec 31, 2011 at 9:06 AM, Dong Xu Wang wrote: > +int bdrv_is_dirty(BlockDriverState *bs) bool would be nicer instead of int. Traditionally we used int but C99 has been around for a long time now and it's more appropriate. > diff --git a/qemu-img.c b/qemu-img.c > index 01cc0d3..a79c274 10

[Qemu-devel] [PATCH 1/2] block: add dirty flag status to qemu-img

2011-12-31 Thread Dong Xu Wang
From: Dong Xu Wang Some block drivers can verify their image files are clean or not. So we can show it while using "qemu-img info" CC: Kevin Wolf CC: Stefan Hajnoczi Signed-off-by: Dong Xu Wang --- Previous discussion can be found at: http://patchwork.ozlabs.org/patch/128730/ block.c |