]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: open secret driver connection at time of use
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 26 Jan 2018 13:15:33 +0000 (13:15 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 31 Jan 2018 18:34:48 +0000 (18:34 +0000)
commita494f7fd4f99841aded55274314b1c890e9f595f
tree2c2827f3d936930c15c0aef52c3e0cffa1dca8a5
parent2870419eb922f0ff0109be19786b748665ec00c5
storage: open secret driver connection at time of use

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@redhat.com>
src/storage/storage_backend_iscsi.c
src/storage/storage_backend_logical.c
src/storage/storage_backend_rbd.c
src/storage/storage_util.c
src/storage/storage_util.h
tests/storagevolxml2argvtest.c