diff options
author | Dong Xu Wang <wdongxu@linux.vnet.ibm.com> | 2012-03-15 20:13:33 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-04-05 14:54:41 +0200 |
commit | 64c79160b456c2d6aabc63e40b32e392a9ea3c90 (patch) | |
tree | 2c7c3bc9967c3c1c57068b15a48308a408c66d88 /qemu-img.c | |
parent | 11c9c615c8e776e59ad0c6c6ed00ec7d38b5d865 (diff) | |
download | hqemu-64c79160b456c2d6aabc63e40b32e392a9ea3c90.zip hqemu-64c79160b456c2d6aabc63e40b32e392a9ea3c90.tar.gz |
qemu-img: add dirty flag status
Some block drivers can verify their image files are clean or not. So we can show
it while using "qemu-img info".
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 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1132,6 +1132,9 @@ static int img_info(int argc, char **argv) if (bdi.cluster_size != 0) { printf("cluster_size: %d\n", bdi.cluster_size); } + if (bdi.is_dirty) { + printf("cleanly shut down: no\n"); + } } bdrv_get_backing_filename(bs, backing_filename, sizeof(backing_filename)); if (backing_filename[0] != '\0') { |