]> Git Repo - qemu.git/commitdiff
qcow2: Remove BDRVQcow2State.cluster_sectors
authorAlberto Garcia <[email protected]>
Wed, 1 May 2019 18:13:59 +0000 (21:13 +0300)
committerKevin Wolf <[email protected]>
Fri, 10 May 2019 14:45:40 +0000 (16:45 +0200)
The last user of this field disappeared when we replace the
sector-based bdrv_write() with the byte-based bdrv_pwrite().

Signed-off-by: Alberto Garcia <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/qcow2.c
block/qcow2.h

index a520d116efd95dcc9ade5711fd7bf1c6c6ba6769..8e024007db696bcd56eafcea017d1881ad457909 100644 (file)
@@ -1259,7 +1259,6 @@ static int coroutine_fn qcow2_do_open(BlockDriverState *bs, QDict *options,
 
     s->cluster_bits = header.cluster_bits;
     s->cluster_size = 1 << s->cluster_bits;
-    s->cluster_sectors = 1 << (s->cluster_bits - BDRV_SECTOR_BITS);
 
     /* Initialise version 3 header fields */
     if (header.version == 2) {
index fdee297f33608d50cc4407ba1f0261d1dbcdc7a3..e62508d1ce22c924caa9df5909bac13f372967a8 100644 (file)
@@ -266,7 +266,6 @@ typedef struct Qcow2BitmapHeaderExt {
 typedef struct BDRVQcow2State {
     int cluster_bits;
     int cluster_size;
-    int cluster_sectors;
     int l2_slice_size;
     int l2_bits;
     int l2_size;
This page took 0.035038 seconds and 4 git commands to generate.