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)
Wed, Apr 17, 6:26 PM
Unknown Object (File)
Nov 13 2023, 8:30 AM
Unknown Object (File)
Nov 11 2023, 2:05 PM
Unknown Object (File)
Nov 9 2023, 2:05 PM
Unknown Object (File)
Nov 7 2023, 11:36 PM
Unknown Object (File)
Oct 8 2023, 12:58 PM
Unknown Object (File)
Oct 6 2023, 10:19 PM
Unknown Object (File)
Sep 22 2023, 10:03 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.