btrbk: call filesystem usage from mount point

pull/459/head
Axel Burri 2022-02-22 20:28:23 +01:00
parent e9fe2cb5f5
commit ff0a887c32
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -6439,7 +6439,7 @@ MAIN:
return unless($mountpoint);
my $mount_source = $mountpoint->{mount_source};
my $mid = $vol->{MACHINE_ID} . $mount_source;
$usage_cache{$mid} //= btrfs_filesystem_usage($vol) // {};
$usage_cache{$mid} //= btrfs_filesystem_usage(vinfo($vol->{URL_PREFIX} . $mountpoint->{mount_point}, $vol->{CONFIG})) // {};
push @data, { %{$usage_cache{$mid}},
type => $type,
mount_source => $mount_source,