From: John Ferlan Date: Thu, 2 Apr 2015 16:48:04 +0000 (-0400) Subject: storage: Add duplicate source pool for Gluster pool def X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2184ade3a0546b915252cb3b6a5dc88e9a8d2ccf;p=libvirt.git 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. --- diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index 2b2104d536..a4e6761931 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -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;