mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 01:04:59 +00:00
storage: Add duplicate source pool for Gluster pool def
Check the proposed pool source host XML definition against existing gluster pools to ensure the incoming definition doesn't use the same source dir and soure host XML definition as an existing pool.
This commit is contained in:
parent
521add056e
commit
2184ade3a0
@ -2464,6 +2464,7 @@ virStoragePoolSourceFindDuplicate(virConnectPtr conn,
|
||||
matchpool = pool;
|
||||
break;
|
||||
case VIR_STORAGE_POOL_NETFS:
|
||||
case VIR_STORAGE_POOL_GLUSTER:
|
||||
if (STREQ(pool->def->source.dir, def->source.dir) &&
|
||||
virStoragePoolSourceMatchSingleHost(&pool->def->source,
|
||||
&def->source))
|
||||
@ -2551,7 +2552,6 @@ virStoragePoolSourceFindDuplicate(virConnectPtr conn,
|
||||
break;
|
||||
case VIR_STORAGE_POOL_MPATH:
|
||||
case VIR_STORAGE_POOL_RBD:
|
||||
case VIR_STORAGE_POOL_GLUSTER:
|
||||
case VIR_STORAGE_POOL_ZFS:
|
||||
case VIR_STORAGE_POOL_LAST:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user