[Kimchi-devel] [PATCH] [Kimchi] Issue #1018 - Disable volume resize option on logical pool.

pvital at linux.vnet.ibm.com pvital at linux.vnet.ibm.com
Wed Sep 28 19:04:08 UTC 2016


From: Paulo Vital <pvital at linux.vnet.ibm.com>

It's not possible (probably by the libvirt rules on logical pools) to
resize a volume on logical pool.

Signed-off-by: Paulo Vital <pvital at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.storage_main.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ui/js/src/kimchi.storage_main.js b/ui/js/src/kimchi.storage_main.js
index c23a4a6..832d3fc 100644
--- a/ui/js/src/kimchi.storage_main.js
+++ b/ui/js/src/kimchi.storage_main.js
@@ -247,7 +247,9 @@ kimchi.storageBindClick = function() {
             } else {
                 // Read-write pools
                 if (poolType !== 'scsi' && poolType !== 'iscsi') {
-                    if (selectedVolumes.length > 1) {
+                    // Not able to resize more than one volume
+                    // Logical pools don't enable resize of their volumes
+                    if (selectedVolumes.length > 1 || poolType === 'logical') {
                         disabled = ['volume-resize'];
                         enabled = ['volume-clone','volume-wipe','volume-delete'];
                     } else {
-- 
2.7.4




More information about the Kimchi-devel mailing list