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

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

 



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@xxxxxxxxxx>
> ---
>  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

Attachment: signature.asc
Description: Digital signature

--
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]
  Powered by Linux