Page MenuHomeFreeBSD

Fix on-disk inode checksum calculation logic.
ClosedPublic

Authored by fsu on May 11 2018, 6:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 11 2025, 10:29 PM
Unknown Object (File)
Sep 7 2025, 6:18 PM
Unknown Object (File)
Aug 8 2025, 5:39 PM
Unknown Object (File)
Jun 27 2025, 9:48 AM
Unknown Object (File)
Jun 20 2025, 2:45 PM
Unknown Object (File)
Jun 19 2025, 5:18 AM
Unknown Object (File)
Jun 17 2025, 12:56 PM
Unknown Object (File)
Jun 4 2025, 7:19 AM
Subscribers

Details

Summary

The next items were fixed:

  • Remove double on-disk inode check for zeros. Now it will be done only if the checksum check was failed.
  • Fix on-disk inode checksum calculation function to do not modify on-disk inode checksum field.
Test Plan

Just create some new files on ext4 volume with metadata_csum feature should be enough.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks good to me

fs/ext2fs/ext2_csum.c
602 ↗(On Diff #42416)

Remove excessive commas:

* it is expected that it will be zeroed
This revision is now accepted and ready to land.May 12 2018, 2:54 AM
fs/ext2fs/ext2_csum.c
602 ↗(On Diff #42416)

Yep, too many commas), will be fixed in the committed version.

This revision was automatically updated to reflect the committed changes.