OSDN Git Service

qed: Simplify backing reads
authorEric Blake <eblake@redhat.com>
Thu, 28 May 2020 09:44:05 +0000 (12:44 +0300)
committerMax Reitz <mreitz@redhat.com>
Mon, 6 Jul 2020 08:34:14 +0000 (10:34 +0200)
commit365fed5111b06d31c1632af63c7528dfe49d62a2
tree7ccc39983dc87c09eb6a98bdc1b5647b10de7477
parenta2adbbf603cee443ca923f6e8546267a706567d5
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>
block/qed.c
block/qed.h