From 581745194793597e743dc8c0f2fe5e6d42a22783 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Thu, 2 Apr 2015 12:50:07 -0400 Subject: [PATCH] storage: Add duplicate devices check for zfs pool def Check proposed pool definitions to ensure they aren't trying to use the same devices as currently defined definitions - disallow the duplicate --- 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 a4e6761931..4852dfbf02 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -2543,6 +2543,7 @@ virStoragePoolSourceFindDuplicate(virConnectPtr conn, case VIR_STORAGE_POOL_FS: case VIR_STORAGE_POOL_LOGICAL: case VIR_STORAGE_POOL_DISK: + case VIR_STORAGE_POOL_ZFS: matchpool = virStoragePoolSourceFindDuplicateDevices(pool, def); break; case VIR_STORAGE_POOL_SHEEPDOG: @@ -2552,7 +2553,6 @@ virStoragePoolSourceFindDuplicate(virConnectPtr conn, break; case VIR_STORAGE_POOL_MPATH: case VIR_STORAGE_POOL_RBD: - case VIR_STORAGE_POOL_ZFS: case VIR_STORAGE_POOL_LAST: break; }