]> git.ipfire.org Git - thirdparty/libvirt.git/commit
secret: Create a 'base64File' in virSecretObj
authorJohn Ferlan <jferlan@redhat.com>
Wed, 24 Feb 2016 01:14:04 +0000 (20:14 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 1 Mar 2016 11:44:24 +0000 (06:44 -0500)
commit0250f34af16bc0626f97263f0aa0017fbe709e81
treeb6034e1e7c9ea2517b3f5f4cfa80b20d3e7a9736
parentaefe02f52e2ce9f7fda7ef0eaea8882f7b2e77e4
secret: Create a 'base64File' in virSecretObj

This patch removes need for secretBase64Path and secretComputePath. Similar
to the configFile, create an entry for base64File, which will be generated
as the driver->configDir, the UUID value, plus the ".base" suffix. Rather
than generating on the fly, store this in the virSecretObj.

The buildup of the pathname done in loadSecrets where the failure to build
is ignored which is no different than the failure to generate the name
in secretLoadValue which would have been ignored in the failure path
after secretLoad.

This also removes the need for secretComputPath and secretBase64Path.

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