[pve-devel] [PATCH storage 1/1] status: rrddata: use fixed pve-storage-9.0 path
Laurențiu Leahu-Vlăducu
l.leahu-vladucu at proxmox.com
Fri Sep 12 19:48:49 CEST 2025
Reviewed-by: Laurențiu Leahu-Vlăducu <l.leahu-vladucu at proxmox.com>
Tested-by: Laurențiu Leahu-Vlăducu <l.leahu-vladucu at proxmox.com>
On 05.09.25 15:55, Aaron Lauterer wrote:
> Because we now always create it, should it not exists and old data is
> used from the old files.
>
> Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
> ---
> src/PVE/API2/Storage/Status.pm | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/src/PVE/API2/Storage/Status.pm b/src/PVE/API2/Storage/Status.pm
> index ad8c753..94fed9b 100644
> --- a/src/PVE/API2/Storage/Status.pm
> +++ b/src/PVE/API2/Storage/Status.pm
> @@ -415,10 +415,11 @@ __PACKAGE__->register_method({
> code => sub {
> my ($param) = @_;
>
> - my $path = "pve-storage-9.0/$param->{node}/$param->{storage}";
> - $path = "pve2-storage/$param->{node}/$param->{storage}"
> - if !-e "/var/lib/rrdcached/db/${path}";
> - return PVE::RRD::create_rrd_data($path, $param->{timeframe}, $param->{cf});
> + return PVE::RRD::create_rrd_data(
> + "pve-storage-9.0/$param->{node}/$param->{storage}",
> + $param->{timeframe},
> + $param->{cf},
> + );
> },
> });
>
More information about the pve-devel
mailing list