mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
storage: Use virStoragePoolSourceMatchSingleHost for NETFS
Rather than have duplicate code doing the same check, have the netfs matching processing code use the new virStoragePoolSourceMatchSingleHost. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
401623bcb4
commit
d92be7f42f
@ -2464,9 +2464,9 @@ virStoragePoolSourceFindDuplicate(virConnectPtr conn,
|
||||
matchpool = pool;
|
||||
break;
|
||||
case VIR_STORAGE_POOL_NETFS:
|
||||
if ((STREQ(pool->def->source.dir, def->source.dir)) \
|
||||
&& (pool->def->source.nhost == 1 && def->source.nhost == 1) \
|
||||
&& (STREQ(pool->def->source.hosts[0].name, def->source.hosts[0].name)))
|
||||
if (STREQ(pool->def->source.dir, def->source.dir) &&
|
||||
virStoragePoolSourceMatchSingleHost(&pool->def->source,
|
||||
&def->source))
|
||||
matchpool = pool;
|
||||
break;
|
||||
case VIR_STORAGE_POOL_SCSI:
|
||||
|
Loading…
x
Reference in New Issue
Block a user