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 wdon...@linux.vnet.ibm.com 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

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 wdon...@linux.vnet.ibm.com 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

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

2011-12-31 Thread Dong Xu Wang
From: Dong Xu Wang wdon...@linux.vnet.ibm.com 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 kw...@redhat.com CC: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Signed-off-by: Dong Xu Wang wdon...@linux.vnet.ibm.com ---