From ff0a887c320ff9f79a3cf75a7ca659fa3926281f Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Tue, 22 Feb 2022 20:28:23 +0100 Subject: [PATCH] btrbk: call filesystem usage from mount point --- btrbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrbk b/btrbk index f959acc..0421ede 100755 --- a/btrbk +++ b/btrbk @@ -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,