pre-fill info for main volume even when quota is disabled

This commit is contained in:
Stéphane Lesimple 2019-03-16 14:16:59 +01:00
parent 73d65d3ecd
commit 49094d8bf9

View file

@ -498,6 +498,20 @@ foreach my $fuuid (keys %filesystems)
if ($cmd->{'status'} || !@{ $cmd->{'stdout'} })
{
print STDERR "WARNING: to get refer/excl size information, please enable qgroups (btrfs quota enable $mp)\n" if not $opt_quiet;
# let's still fill the info for the main volume
$vol{$fuuid}{5} = {
id => 5,
path => "[main]",
gen => 0,
cgen => 0,
parent => '-',
top => '-',
puuid => '+',
ruuid => '-',
type => 'mainvol',
mode => 'rw',
mp => $mp,
};
next;
}
}