[pve-devel] [PATCH] Added support for ZFS Storage Plugin

mir at datanom.net mir at datanom.net
Fri May 24 20:53:20 CEST 2013


From: Michael Rasmussen <mir at datanom.net>


Signed-off-by: Michael Rasmussen <mir at datanom.net>
---
 PVE/QemuServer.pm |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 4f633e6..d71b199 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -4549,6 +4549,8 @@ sub qemu_img_format {
 
     if ($scfg->{path} && $volname =~ m/\.(raw|qcow2|qed|vmdk)$/) {
 	return $1;
+    } elsif ($scfg->{type} eq 'nexenta' || $scfg->{type} eq 'zfs' || $scfg->{type} eq 'iscsidirect') {
+	return "iscsi";
     } elsif ($scfg->{type} eq 'iscsi') {
 	return "host_device";
     } else { 
-- 
1.7.10.4




More information about the pve-devel mailing list