Skip to content

Commit

Permalink
feat: detect and report buggy versions of btrfs-progs
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Apr 16, 2024
1 parent ae01f69 commit 0e9af06
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions btrfs-list
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,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";
Expand Down

0 comments on commit 0e9af06

Please sign in to comment.