Re: [PATCH 10/14] secret: Create a 'base64File' in virSecretObj

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 25, 2016 at 09:03:14AM -0500, John Ferlan wrote:
> 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.

Yep, and better to have the failure upfront than later when we want to
save/delete the secret

> 
> This also removes the need for secretComputPath and secretBase64Path.
> 
> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
> ---
>  src/secret/secret_driver.c | 107 ++++++++++++++++++++-------------------------

ACK


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]