[pve-devel] [PATCH V2 pve-zsync 2/3] fix #1301 skip if mp has no backup flag.
Wolfgang Link
w.link at proxmox.com
Wed Mar 15 11:57:49 CET 2017
---
pve-zsync | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pve-zsync b/pve-zsync
index 38357a5..bc06ae1 100644
--- a/pve-zsync
+++ b/pve-zsync
@@ -778,7 +778,7 @@ sub parse_disks {
next if $vm_type eq 'qemu' && ($line =~ m/backup=(?i:0|no|off|false)/);
#LXC if backup is not set do no in sync
- $error = ($line =~ m/backup=(?i:1|yes|on|true)/) if $vm_type eq 'lxc';
+ next if $vm_type eq 'lxc' && ($line =~ m/^mp\d:/) && ($line !~ m/backup=(?i:1|yes|on|true)/);
my $disk = undef;
my $stor = undef;
--
2.1.4
More information about the pve-devel
mailing list