On Sat, Dec 31, 2011 at 9:06 AM, Dong Xu Wang
wrote:
> +static int bdrv_qed_is_dirty(BlockDriverState *bs)
> +{
> + BDRVQEDState *s = bs->opaque;
> + return s->header.features & QED_F_NEED_CHECK;
> +}
Looks good.
Note that the image will be checked and then QED_F_NEED_CHECK is
cleared when
From: Dong Xu Wang
qed driver use QED_F_NEED_CHECK to mark if the image is clean.
CC: Kevin Wolf
CC: Stefan Hajnoczi
Signed-off-by: Dong Xu Wang
---
block/qed.c |7 +++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/block/qed.c b/block/qed.c
index 8da3ebe..1e909b1 100