mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-13 04:56:16 +00:00
restore destroy volumes: remove check for absolute path
Only a result from vdisk_alloc is assigned as a volid and that's never an absolute path. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
01a4377fc1
commit
e60afe8273
@ -6474,11 +6474,7 @@ my $restore_destroy_volumes = sub {
|
|||||||
my $volid = $devinfo->{$devname}->{volid};
|
my $volid = $devinfo->{$devname}->{volid};
|
||||||
next if !$volid;
|
next if !$volid;
|
||||||
eval {
|
eval {
|
||||||
if ($volid =~ m|^/|) {
|
PVE::Storage::vdisk_free($storecfg, $volid);
|
||||||
unlink $volid || die 'unlink failed\n';
|
|
||||||
} else {
|
|
||||||
PVE::Storage::vdisk_free($storecfg, $volid);
|
|
||||||
}
|
|
||||||
print STDERR "temporary volume '$volid' sucessfuly removed\n";
|
print STDERR "temporary volume '$volid' sucessfuly removed\n";
|
||||||
};
|
};
|
||||||
print STDERR "unable to cleanup '$volid' - $@" if $@;
|
print STDERR "unable to cleanup '$volid' - $@" if $@;
|
||||||
|
Loading…
Reference in New Issue
Block a user