mirror of https://github.com/digint/btrbk
btrbk: call filesystem usage from mount point
parent
e9fe2cb5f5
commit
ff0a887c32
2
btrbk
2
btrbk
|
@ -6439,7 +6439,7 @@ MAIN:
|
||||||
return unless($mountpoint);
|
return unless($mountpoint);
|
||||||
my $mount_source = $mountpoint->{mount_source};
|
my $mount_source = $mountpoint->{mount_source};
|
||||||
my $mid = $vol->{MACHINE_ID} . $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}},
|
push @data, { %{$usage_cache{$mid}},
|
||||||
type => $type,
|
type => $type,
|
||||||
mount_source => $mount_source,
|
mount_source => $mount_source,
|
||||||
|
|
Loading…
Reference in New Issue