Skip to content

Commit

Permalink
sadfscheck: When checking compression, allow "on" too
Browse files Browse the repository at this point in the history
  • Loading branch information
wdoekes committed Dec 6, 2024
1 parent 77e69e7 commit 9b4963d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sadfscheck
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ zfs_check_compression() {
# We check the main pools only. Children filesystems can have different
# settings.
compression=$(zfs get -Hovalue compression "$name")
if test "$compression" != lz4; then
if test "$compression" != lz4 && test "$compression" != on; then
echo "$name: compression is not lz4 (it is '$compression')" >&2
fi
done
Expand Down

0 comments on commit 9b4963d

Please sign in to comment.