]> git.proxmox.com Git - qemu-server.git/commitdiff
implement offline migration on zfs
authorWolfgang Link <w.link@proxmox.com>
Fri, 24 Apr 2015 11:27:27 +0000 (13:27 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 27 Apr 2015 08:42:59 +0000 (10:42 +0200)
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
PVE/QemuMigrate.pm

index af04ea56924bddbf044fa9de64f843bc9a20c368..f6eb3f5119916e9ddf6ffa734e944cf6d483401b 100644 (file)
@@ -248,10 +248,10 @@ sub sync_disks {
            my $scfg =  PVE::Storage::storage_config($self->{storecfg}, $sid);
 
            die "can't migrate '$volid' - storage type '$scfg->{type}' not supported\n"
-               if $scfg->{type} ne 'dir';
+               if (!($scfg->{type} eq 'dir' || $scfg->{type} eq 'zfspool') && (!$sharedvm));
 
            # if file, check if a backing file exist
-           if (($scfg->{type} eq 'dir') && (!$sharedvm)) {
+           if (!($scfg->{type} eq 'dir' || $scfg->{type} eq 'zfspool') && (!$sharedvm)) {
                my (undef, undef, undef, $parent) = PVE::Storage::volume_size_info($self->{storecfg}, $volid, 1);
                die "can't migrate '$volid' as it's a clone of '$parent'" if $parent;
            }