Page MenuHomeFreeBSD

Improve extents verification logic.
ClosedPublic

Authored by fsu on Apr 22 2021, 5:25 PM.

Details

Summary

This change adds ability to do extents tree validation under ext2_vget() and simply detect inodes with extents corruptions.
The variable print_extents_walk allows to print extents tree, if needed.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

fsu requested review of this revision.Apr 22 2021, 5:25 PM
fsu created this revision.
pfg requested changes to this revision.Apr 22 2021, 9:04 PM

Using all uppercase messages is bad, unless there is a panic.
Otherwise, LGTM.

sys/fs/ext2fs/ext2_inode_cnv.c
76

No, please don''r have the filesystem scream.

This revision now requires changes to proceed.Apr 22 2021, 9:04 PM

Fix printf message as requested

This revision is now accepted and ready to land.Apr 23 2021, 4:06 PM
This revision was automatically updated to reflect the committed changes.