mirror of
https://github.com/speed47/btrfs-list
synced 2024-09-30 04:43:31 +00:00
pre-fill info for main volume even when quota is disabled
This commit is contained in:
parent
73d65d3ecd
commit
49094d8bf9
14
btrfs-list
14
btrfs-list
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue