diff options
author | Eric Blake <eblake@redhat.com> | 2020-05-28 12:44:05 +0300 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2020-07-06 10:34:14 +0200 |
commit | 365fed5111b06d31c1632af63c7528dfe49d62a2 (patch) | |
tree | 7ccc39983dc87c09eb6a98bdc1b5647b10de7477 /block/qed.h | |
parent | a2adbbf603cee443ca923f6e8546267a706567d5 (diff) |
qed: Simplify backing reads
The other four drivers that support backing files (qcow, qcow2,
parallels, vmdk) all rely on the block layer to populate zeroes when
reading beyond EOF of a short backing file. We can simplify the qed
code by doing likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200528094405.145708-11-vsementsov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/qed.h')
-rw-r--r-- | block/qed.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/qed.h b/block/qed.h index 42c115d822..3d12bf78d4 100644 --- a/block/qed.h +++ b/block/qed.h @@ -140,7 +140,6 @@ typedef struct QEDAIOCB { /* Current cluster scatter-gather list */ QEMUIOVector cur_qiov; - QEMUIOVector *backing_qiov; uint64_t cur_pos; /* position on block device, in bytes */ uint64_t cur_cluster; /* cluster offset in image file */ unsigned int cur_nclusters; /* number of clusters being accessed */ |