[libvirt] [PATCH v2 10/11] secret: Alter FindByUUID to expect the formatted uuidstr

Pavel Hrdina phrdina at redhat.com
Wed Apr 26 08:44:39 UTC 2017


On Tue, Apr 25, 2017 at 05:15:34PM -0400, John Ferlan wrote:
> Since we're storing a virUUIDFormat'd string in our Hash Table, let's
> modify the Lookup API to receive a formatted string as well.
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  src/conf/virsecretobj.c    | 18 +++++++-----------
>  src/conf/virsecretobj.h    |  2 +-
>  src/secret/secret_driver.c | 10 +++++-----
>  3 files changed, 13 insertions(+), 17 deletions(-)

I still don't like this patch and I see why you want to keep converting
UUID to string, it is necessary for the future patches because the *primary*
and *secondary* keys assumes that they will be strings.

I still think that if we will cleanup the UUID lookup somehow, we should stop
converting it to a string and make proper "key*" callbacks that will be used
by our hash table.  I'll send a patches to do that.

Let's drop this patch for now to not hold the whole series and move it to
a discussion about the new virObjectPoolableHashTable and
virObjectPoolableHashElement classes.

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170426/02be638f/attachment-0001.sig>


More information about the libvir-list mailing list