On 01/26/2018 02:35 PM, Daniel P. Berrangé wrote: > Instead of passing around a virConnectPtr object, just open a connection > to the secret driver at time of use. Opening connections on demand will > be beneficial when the secret driver is in a separate daemon. It also > solves the problem that a number of callers just pass in a NULL > connection today which prevents secret lookup working at all. > > Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx> > --- > src/storage/storage_backend_iscsi.c | 14 +++--- > src/storage/storage_backend_logical.c | 2 +- > src/storage/storage_backend_rbd.c | 41 +++++++-------- > src/storage/storage_util.c | 95 ++++++++++++++++------------------- > src/storage/storage_util.h | 6 +-- > 5 files changed, 71 insertions(+), 87 deletions(-) ACK with this squashed in: diff --git i/tests/storagevolxml2argvtest.c w/tests/storagevolxml2argvtest.c index 1cd083766..efb80b9cf 100644 --- i/tests/storagevolxml2argvtest.c +++ w/tests/storagevolxml2argvtest.c @@ -84,7 +84,7 @@ testCompareXMLToArgvFiles(bool shouldFail, testSetVolumeType(vol, def); testSetVolumeType(inputvol, inputpool); - cmd = virStorageBackendCreateQemuImgCmdFromVol(conn, obj, vol, + cmd = virStorageBackendCreateQemuImgCmdFromVol(obj, vol, inputvol, flags, create_tool, imgformat, NULL); Michal -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list