[pve-devel] [PATCH qemu-server] Display volumes options in log when doing a volume backup

Emmanuel Kasper e.kasper at proxmox.com
Tue Dec 13 16:34:54 CET 2016


Output before this patch
INFO: include disk 'scsi0' 'file=pve4tank:vm-402-disk-1'

Output after this patch:
INFO: include disk 'scsi0' 'file=pve4tank:vm-402-disk-1,cache=writethrough,discard=on,size=64G'

we're mainly intersted by the volume size here, it was requested in #351
---
 PVE/VZDump/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index 6a58a79..f6162c5 100644
--- a/PVE/VZDump/QemuServer.pm
+++ b/PVE/VZDump/QemuServer.pm
@@ -75,7 +75,7 @@ sub prepare {
 	} elsif ($drive->{iothread}) {
 	    die "disk '$ds' '$volid' (iothread=on) can't use backup feature currently. Please set backup=no for this drive";
 	} else {
-	    $self->loginfo("include disk '$ds' '$volid'");
+	    $self->loginfo("include disk '$ds' '$conf->{$ds}'");
 	}
 
 	my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid, 1);
-- 
2.1.4





More information about the pve-devel mailing list