[pve-devel] [PATCH storage v2 1/2] fix #3972: Remove the .notes file when a backup is deleted

Fabian Ebner f.ebner at proxmox.com
Wed May 18 11:16:33 CEST 2022


Am 12.05.22 um 15:17 schrieb Daniel Tschlatscher:
>  	    unlink $logpath or warn "removing log file $logpath failed: $!\n";

Forgot to say that we could switch to using PVE::RESTEnvironment's
log_warn here

>  	}
>      }
> +
> +    if (defined($notesfn)) {
> +	my $notespath = "$dirname/$notesfn";
> +	if (-e $notespath) {
> +	    unlink $notespath or warn "removing notes file $notespath failed: $!\n";

and here

> +	}
> +    }
>  }





More information about the pve-devel mailing list