qed: track dirty flag status
authorDong Xu Wang <wdongxu@linux.vnet.ibm.com>
Thu, 15 Mar 2012 12:13:34 +0000 (20:13 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Apr 2012 12:54:41 +0000 (14:54 +0200)
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>
block/qed.c

index d6c158086670ae694846e46a9bdebe41153dd069..19d87f3bef9b4aec94cf965b535b807a83d2711f 100644 (file)
@@ -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;
 }