aboutsummaryrefslogtreecommitdiff
path: root/block_int.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-08-06 13:35:09 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-08-06 13:35:09 +0000
commitd15a771da15513560371443bd361abbcf51f70b8 (patch)
treefab5d442d7f396b46603e577c980674a2d123d85 /block_int.h
parenta946592212874f1e214e0db365c29e8de1179847 (diff)
downloadqemu-d15a771da15513560371443bd361abbcf51f70b8.zip
qemu-d15a771da15513560371443bd361abbcf51f70b8.tar.gz
qemu-d15a771da15513560371443bd361abbcf51f70b8.tar.bz2
qcow2 is now used for '-snapshot' - keep BlockDriverState.total_sectors
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2094 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block_int.h')
-rw-r--r--block_int.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/block_int.h b/block_int.h
index b3bc5b3..26cc4ff 100644
--- a/block_int.h
+++ b/block_int.h
@@ -73,7 +73,8 @@ struct BlockDriver {
};
struct BlockDriverState {
- int64_t total_sectors; /* XXX: will be suppressed */
+ int64_t total_sectors; /* if we are reading a disk image, give its
+ size in sectors */
int read_only; /* if true, the media is read only */
int inserted; /* if true, the media is present */
int removable; /* if true, the media can be removed */