]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Need to refresh secret for luks volume after volume refresh
authorJohn Ferlan <jferlan@redhat.com>
Tue, 6 Sep 2016 20:52:36 +0000 (16:52 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 12 Sep 2016 14:05:21 +0000 (10:05 -0400)
commitb68487c917a2cd576bbd80d423b80860c46d6d0f
treefde26e023d2e980c5e893bdff97a0c5382c64192
parentb6daacf6ceb6fbb829522969af9f45a88e5ac3d7
storage: Need to refresh secret for luks volume after volume refresh

A LUKS volume uses the volume secret type just like the QCOW2 secret, so
adjust the loading of the default secrets to handle any volume that the
virStorageFileGetMetadataFromBuf code has deemed to be an encrypted volume
to search for the volume's secret. This lookup is done by volume usage
where the usage is expected to be the path to volume.
src/storage/storage_backend_fs.c