Skip to content

Add deep extent tree support (depth >= 2) in EXT4 formatter#650

Open
gbfish wants to merge 1 commit intoapple:mainfrom
gbfish:deep-extents-formatter
Open

Add deep extent tree support (depth >= 2) in EXT4 formatter#650
gbfish wants to merge 1 commit intoapple:mainfrom
gbfish:deep-extents-formatter

Conversation

@gbfish
Copy link
Copy Markdown

@gbfish gbfish commented Apr 4, 2026

Summary

  • Extract writeExtentSubtree() that recursively builds extent trees of any depth
  • Fix force-unwrap crash on leafNode.leaves.last!.block (use safe optional access)
  • Replace hardcoded depth 0/1 switch with general depth calculation
  • Remove fileTooBig error for large extent counts

Fixes #645 (formatter portion)

Test plan

  • All 40 existing EXT4 tests pass
  • Depth 0 and depth 1 files write correctly (verified by existing test suite)
  • Force-unwrap bug fixed with safe optional access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Implement deep extent tree support (depth >= 2) in ContainerizationEXT4

1 participant