mirror of
https://github.com/speed47/btrfs-list
synced 2024-06-28 22:14:36 +00:00
feat: detect and report buggy versions of btrfs-progs
This commit is contained in:
parent
f4d929e7ed
commit
d2a9bb2548
|
@ -452,6 +452,15 @@ if (version->declare($version)->numify lt version->declare("3.18")->numify && !$
|
|||
exit 1;
|
||||
} ## end if (version->declare($version...))
|
||||
|
||||
if ($version_verbatim eq '6.1' && !$opt_ignore_version_check) {
|
||||
warning(2,
|
||||
"the btrfs-progs version you're using, " . "v$version_verbatim, is known to be missing subvolume uuids.");
|
||||
}
|
||||
elsif ($version_verbatim eq '5.15' && !$opt_ignore_version_check) {
|
||||
warning(2,
|
||||
"the btrfs-progs version you're using, " . "v$version_verbatim, is known to report free fs space incorrectly.");
|
||||
}
|
||||
|
||||
if ($< != 0 && !$opt_ignore_root_check) {
|
||||
print STDERR "FATAL: you must be root to use this command\n";
|
||||
print STDERR "If you think this is in error, use --ignore-root-check\n";
|
||||
|
|
Loading…
Reference in New Issue
Block a user