]> xenbits.xensource.com Git - libvirt.git/commit
storage_util: Split backing_fmt set in storageBackendCreateQemuImgOpts
authorJohn Ferlan <jferlan@redhat.com>
Mon, 7 May 2018 14:17:43 +0000 (10:17 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 15 May 2018 20:57:24 +0000 (16:57 -0400)
commitc46fc572be6cf2204ddd7f05cf3bb33ed2f36a62
treeae91ae1777d391d809478cb02603d6c39b1a59cf
parent3d14408c17daeae7b6fb238f9e9a5f8793170378
storage_util: Split backing_fmt set in storageBackendCreateQemuImgOpts

The only way backing_fmts could be set is if the info->format was
not RAW (see storageBackendCreateQemuImgSetBacking), so let's just
extract it from the if/else surrounding the application of the
encryption options.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_util.c