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

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Aug 26 10:58:12 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 c742494..5f21ecb 100644
--- a/PVE/Storage/BTRFSPlugin.pm
+++ b/PVE/Storage/BTRFSPlugin.pm
@@ -23,7 +23,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