[libvirt] [PATCH 15/20] Provide missing passphrase when creating a volume.

Miloslav Trmac mitr at redhat.com
Tue Sep 1 18:58:12 UTC 2009


----- "Daniel P. Berrange" <berrange at redhat.com> wrote:
> > > I reckon this snippet of code could usefully be put into the util.h file
> > > as virFileGenerateRandomkey(), or alternatively perhaps secret_conf.h, 
> > > as virSecretGenerateRandomKey(unsigned char *buf, size_t buflen);
> > This code, with its limitation to ASCII characters, is
> qcow/qemu-specific.
> 
> Ok, lets leave it in the QEMU driver file then
AFAICS the qemu and storage drivers can be built as modules, this would create a dependency.  I'll just split the code into a separate function for now.
    Mirek




More information about the libvir-list mailing list