block/qed: Keep auto_backing_file if possible
commitdc70638ff616ef0a1a6e4f61ce1f3f5282d2c942
authorHanna Reitz <hreitz@redhat.com>
Wed, 3 Aug 2022 14:44:45 +0000 (3 16:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 30 Sep 2022 16:43:44 +0000 (30 18:43 +0200)
treeafb1d95c5244682d7c3cce011c6416eb356c7724
parentec64b1ca08138b5f57d270a5756a9138f897ee5a
block/qed: Keep auto_backing_file if possible

Just like qcow2, qed invokes its open function in its
.bdrv_co_invalidate_cache() implementation.  Therefore, just like done
for qcow2 in HEAD^, update auto_backing_file only if the backing file
string in the image header differs from the one we have read before.

Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220803144446.20723-3-hreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qed.c