[pve-devel] [PATCH] fix #1004 adapt regex to new schema

Wolfgang Link w.link at proxmox.com
Thu Jun 2 09:27:13 CEST 2016


---
 pve-zsync | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pve-zsync b/pve-zsync
index 212ada9..932c299 100644
--- a/pve-zsync
+++ b/pve-zsync
@@ -766,6 +766,8 @@ sub parse_disks {
 	if($line =~ m/^(?:((?:virtio|ide|scsi|sata|mp)\d+)|rootfs): ([^:]+:)([A-Za-z0-9\-]+),(.*)$/) {
 	    $disk = $3;
 	    $stor = $2;
+
+	    $stor =~ s/^file=|volume=//;
 	} else {
 	    print "Disk: \"$line\" will not include in pve-sync\n" if $get_err || $error;
 	    next;
-- 
2.1.4





More information about the pve-devel mailing list