]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: storagefile: Don't traverse storage sources unusable by VM
authorPeter Krempa <pkrempa@redhat.com>
Fri, 16 Aug 2019 09:34:27 +0000 (11:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Aug 2019 11:49:17 +0000 (13:49 +0200)
commitb1c778d854a927c3b7d11f06add9761148b6d5d5
treec0873f459db1e9f880ecee57d87c0336c6f4a876
parent46135dd40fbe112211c4ed7f6d9a6cc7b4001af1
util: storagefile: Don't traverse storage sources unusable by VM

virStorageFileGetMetadataRecurse would include files in the backing
chain which would not really be usable by libvirt directly e.g.
when such file would be promoted to the top layer by an active block
commit as for example inline authentication data can't be represented in
the VM xml file. The idea is to use secrets for this.

With the changes to the backing store string parsers we can report and
propagate if such a thing is present in the configuration and thus start
skipping those files in the backing chain traversal code. This approach
still allows to report the appropriate backing store string in the
storage driver which doesn't directly use the backing file.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virstoragefile.c