Linux Operating System (MOSC)

MOSC Banner

BTRFS checksums - UEK minimal

edited Aug 7, 2024 4:56AM in Linux Operating System (MOSC) 2 commentsAnswered

The documentation for btrfs checksums (man mkfs.btrfs, man 5 btrfs) as provided in Oracle Linux 8 suggests that four types are available: crc32c xxhash sha256 blake2.

If I run the following script under the latest UEKR6, only the first mount is successful:

for CSUM in crc32c xxhash sha256 blake2

do fallocate -l 50G /home/CALDRON.BTRFS

   mkfs.btrfs --csum="$CSUM" /home/CALDRON.BTRFS

   mount -o loop /home/CALDRON.BTRFS /someplace

   umount /someplace

   rm -v /home/CALDRON.BTRFS

done

After the installation and boot of the El Repo Mainline kernel packages, all four mounts succeed.

Why is the UEK limited to crc32, which is roundly criticized for hash collisions?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center