[pve-devel] [PATCH v2 storage 3/3] btrfs: disallow qcow2 and vmdk

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Aug 24 11:55:50 CEST 2016


While btrfs can function entirely as a directory storage, we
do not want people to stack multiple COW layers.

This only changes the allowed format list while keeping the
case distinctions in the method implementations, which means
theoretically one can still manually create qcow2 files in a
btrfs storage and add it to the VM config in /etc/pve
without breaking things.
---
 PVE/Storage/BTRFSPlugin.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Storage/BTRFSPlugin.pm b/PVE/Storage/BTRFSPlugin.pm
index d73ddaf..ab3cb3c 100644
--- a/PVE/Storage/BTRFSPlugin.pm
+++ b/PVE/Storage/BTRFSPlugin.pm
@@ -22,7 +22,7 @@ sub plugindata {
     return {
 	content => [ { images => 1, rootdir => 1, vztmpl => 1, iso => 1, backup => 1, none => 1 },
 		     { images => 1, rootdir => 1 } ],
-	format => [ { raw => 1, qcow2 => 1, vmdk => 1, subvol => 1 } , 'raw' ],
+	format => [ { raw => 1, subvol => 1 } , 'raw' ],
     };
 }   
 
-- 
2.1.4





More information about the pve-devel mailing list