1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

btrfs_subvol_usage: fix "btrfs qgroup show" output format

Switch "btrfs qgroup show" for raw output format, because by default it's human readable form and can't be read by scripts.
This commit is contained in:
rantal 2019-08-16 21:06:26 +03:00 committed by Lars Kruse
parent 4ee40c8227
commit 735689d47a

View file

@ -62,7 +62,7 @@ while (my $line = <SVS>) {
close SVS;
# get sizes from quota
open(QGS, "btrfs qgroup show @fsroot |")
open(QGS, "btrfs qgroup show --raw @fsroot |")
or die("Failed to run 'btrfs qgroup show': " . $!);
while (my $line = <QGS>) {
chomp $line;