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)
Fri, Apr 18, 2:55 AM
Unknown Object (File)
Mon, Apr 7, 12:13 PM
Unknown Object (File)
Mar 8 2025, 5:33 PM
Unknown Object (File)
Mar 3 2025, 3:10 PM
Unknown Object (File)
Mar 1 2025, 4:48 PM
Unknown Object (File)
Feb 8 2025, 8:36 AM
Unknown Object (File)
Feb 4 2025, 12:28 AM
Unknown Object (File)
Jan 29 2025, 7:09 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.