[pve-devel] [PATCH manager] restrict lvm thin on qemu to storage type raw

Dominik Csapak d.csapak at proxmox.com
Thu Feb 18 16:36:08 CET 2016


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager/qemu/Clone.js  | 1 +
 www/manager/qemu/HDEdit.js | 3 ++-
 www/manager/qemu/HDMove.js | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/www/manager/qemu/Clone.js b/www/manager/qemu/Clone.js
index de0c95a..03322eb 100644
--- a/www/manager/qemu/Clone.js
+++ b/www/manager/qemu/Clone.js
@@ -66,6 +66,7 @@ Ext.define('PVE.window.Clone', {
 	}
 
 	if (rec.data.type === 'lvm' ||
+	    rec.data.type === 'lvmthin' ||
             rec.data.type === 'rbd' ||
             rec.data.type === 'iscsi' ||
             rec.data.type === 'sheepdog' ||
diff --git a/www/manager/qemu/HDEdit.js b/www/manager/qemu/HDEdit.js
index a985876..b8ca4e5 100644
--- a/www/manager/qemu/HDEdit.js
+++ b/www/manager/qemu/HDEdit.js
@@ -178,7 +178,8 @@ Ext.define('PVE.qemu.HDInputPanel', {
 			    me.hdfilesel.setVisible(true);
 			    me.hdsizesel.setDisabled(true);
 			    me.hdsizesel.setVisible(false);
-			} else if (rec.data.type === 'lvm' || 
+			} else if (rec.data.type === 'lvm' ||
+				   rec.data.type === 'lvmthin' ||
 				   rec.data.type === 'rbd' ||
 				   rec.data.type === 'sheepdog' ||
 				   rec.data.type === 'zfs' ||
diff --git a/www/manager/qemu/HDMove.js b/www/manager/qemu/HDMove.js
index 6c16a36..824a898 100644
--- a/www/manager/qemu/HDMove.js
+++ b/www/manager/qemu/HDMove.js
@@ -75,6 +75,7 @@ Ext.define('PVE.window.HDMove', {
                             me.formatsel.setValue('raw');
                             me.formatsel.setDisabled(true);
                         } else if (rec.data.type === 'lvm' ||
+				   rec.data.type === 'lvmthin' ||
                                    rec.data.type === 'rbd' ||
                                    rec.data.type === 'sheepdog' ||
                                    rec.data.type === 'zfs' ||
-- 
2.1.4





More information about the pve-devel mailing list