Loading block-qcow.c +20 −25 Original line number Diff line number Diff line Loading @@ -339,7 +339,6 @@ static uint64_t get_cluster_offset(BlockDriverState *bs, return -1; } else { cluster_offset = bdrv_getlength(s->hd); if (allocate == 1) { /* round to cluster size */ cluster_offset = (cluster_offset + s->cluster_size - 1) & ~(s->cluster_size - 1); Loading @@ -363,10 +362,6 @@ static uint64_t get_cluster_offset(BlockDriverState *bs, } } } } else { cluster_offset |= QCOW_OFLAG_COMPRESSED | (uint64_t)compressed_size << (63 - s->cluster_bits); } } /* update L2 table */ tmp = cpu_to_be64(cluster_offset); Loading Loading
block-qcow.c +20 −25 Original line number Diff line number Diff line Loading @@ -339,7 +339,6 @@ static uint64_t get_cluster_offset(BlockDriverState *bs, return -1; } else { cluster_offset = bdrv_getlength(s->hd); if (allocate == 1) { /* round to cluster size */ cluster_offset = (cluster_offset + s->cluster_size - 1) & ~(s->cluster_size - 1); Loading @@ -363,10 +362,6 @@ static uint64_t get_cluster_offset(BlockDriverState *bs, } } } } else { cluster_offset |= QCOW_OFLAG_COMPRESSED | (uint64_t)compressed_size << (63 - s->cluster_bits); } } /* update L2 table */ tmp = cpu_to_be64(cluster_offset); Loading