]> xenbits.xensource.com Git - libvirt.git/commit
virISCSIDirectRefreshVol: Don't clear volumes in each run
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 28 Feb 2019 14:08:19 +0000 (15:08 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 28 Feb 2019 14:55:48 +0000 (15:55 +0100)
commitbf5cf610f206d5d54914e8f8b0764b2b37ddf50c
tree6a142734ff8223ddc506e57ff20d695cae280510
parent6097d1c8d2ba905ea32bf88cab3d8eb2d8231145
virISCSIDirectRefreshVol: Don't clear volumes in each run

When fetching LUNs from iscsi server the
virISCSIDirectReportLuns() is called. This function does some
libiscsi calls and then calls virISCSIDirectRefreshVol() over
each LUN found. It's unfortunate that the latter calls
virStoragePoolObjClearVols() as we lose all LUNs processed
in previous iterations.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/storage/storage_backend_iscsi_direct.c