diff options
-rw-r--r-- | include/block/block_int.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 233489547e..07f3d4426c 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -301,8 +301,11 @@ typedef struct BdrvOpBlocker BdrvOpBlocker; * copied as well. */ struct BlockDriverState { + /* TODO: replace by total_bytes */ + __attribute__ ((deprecated)) int64_t total_sectors; /* if we are reading a disk image, give its size in sectors */ + uint64_t total_bytes; /* file size in bytes for reading from disk images */ int read_only; /* if true, the media is read only */ int open_flags; /* flags used to open the file, re-used for re-open */ int encrypted; /* if true, the media is encrypted */ |