diff options
author | Dong Xu Wang <wdongxu@linux.vnet.ibm.com> | 2012-03-15 20:13:34 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-04-05 14:54:41 +0200 |
commit | d68dbee80e3964d9bb0ab29ad64675da148c3cac (patch) | |
tree | 322c65afaecfc823115da12bb9dda43c660c45ad /block | |
parent | 64c79160b456c2d6aabc63e40b32e392a9ea3c90 (diff) | |
download | hqemu-d68dbee80e3964d9bb0ab29ad64675da148c3cac.zip hqemu-d68dbee80e3964d9bb0ab29ad64675da148c3cac.tar.gz |
qed: track dirty flag status
Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/qed.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/qed.c b/block/qed.c index d6c1580..19d87f3 100644 --- a/block/qed.c +++ b/block/qed.c @@ -1434,6 +1434,7 @@ static int bdrv_qed_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) memset(bdi, 0, sizeof(*bdi)); bdi->cluster_size = s->header.cluster_size; + bdi->is_dirty = s->header.features & QED_F_NEED_CHECK; return 0; } |