mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-21 18:03:56 +03:00
Close #351: add more info to backup log
Before patch: INFO: exclude disk 'scsi1' (backup=no) INFO: skip unused drive 'local:401/vm-401-disk-3.raw' (not included into backup) INFO: skip unused drive 'local:401/vm-401-disk-1.raw' (not included into backup) After patch applied: INFO: include disk 'scsi0' local:401/vm-401-disk-4.qcow2 INFO: exclude disk 'scsi1' local:401/vm-401-disk-2.raw (backup=no) INFO: include disk 'scsi2' pve4tank:vm-401-disk-1 INFO: skip unused drive 'local:401/vm-401-disk-3.raw' (not included into backup) INFO: skip unused drive 'local:401/vm-401-disk-1.raw' (not included into backup)
This commit is contained in:
parent
e261de405e
commit
b53b958b34
@ -67,15 +67,17 @@ sub prepare {
|
||||
|
||||
return if PVE::QemuServer::drive_is_cdrom($drive);
|
||||
|
||||
my $volid = $drive->{file};
|
||||
|
||||
if (defined($drive->{backup}) && !$drive->{backup}) {
|
||||
$self->loginfo("exclude disk '$ds' (backup=no)");
|
||||
$self->loginfo("exclude disk '$ds' '$volid' (backup=no)");
|
||||
return;
|
||||
} elsif ($drive->{iothread}) {
|
||||
die "disk '$ds' (iothread=on) can't use backup feature currently. Please set backup=no for this drive";
|
||||
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'");
|
||||
}
|
||||
|
||||
my $volid = $drive->{file};
|
||||
|
||||
my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid, 1);
|
||||
push @$vollist, $volid if $storeid;
|
||||
$drivehash->{$ds} = $drive;
|
||||
|
Loading…
x
Reference in New Issue
Block a user