]> xenbits.xensource.com Git - libvirt.git/commit
storage: open nodedev driver connection at time of use
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 31 Jan 2018 16:31:57 +0000 (16:31 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 31 Jan 2018 18:34:48 +0000 (18:34 +0000)
commitdecaeb28829b40940501640623fe822694338576
treeee60b71c23373b6299e0d31d444da5bb0b65ba7b
parenta494f7fd4f99841aded55274314b1c890e9f595f
storage: open nodedev driver connection at time of use

Instead of passing around a virConnectPtr object, just open a connection
to the nodedev driver at time of use. Opening connections on demand will
be beneficial when the nodedev 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 nodedev lookup working at all.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/storage/storage_backend_scsi.c