From 2184ade3a0546b915252cb3b6a5dc88e9a8d2ccf Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Thu, 2 Apr 2015 12:48:04 -0400 Subject: [PATCH] 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. --- src/conf/storage_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- GitLab