aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorDong Xu Wang <wdongxu@linux.vnet.ibm.com>2012-03-15 20:13:34 +0800
committerKevin Wolf <kwolf@redhat.com>2012-04-05 14:54:41 +0200
commitd68dbee80e3964d9bb0ab29ad64675da148c3cac (patch)
tree322c65afaecfc823115da12bb9dda43c660c45ad /block
parent64c79160b456c2d6aabc63e40b32e392a9ea3c90 (diff)
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/qed.c b/block/qed.c
index d6c1580866..19d87f3bef 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;
}