Skip to content

Raghumani/alloc inode impl#7

Merged
raghumanimehta merged 9 commits intomainfrom
raghumani/alloc_inode_impl
Jan 12, 2026
Merged

Raghumani/alloc inode impl#7
raghumanimehta merged 9 commits intomainfrom
raghumani/alloc_inode_impl

Conversation

@raghumanimehta
Copy link
Copy Markdown
Owner

  • Changed the type of inodes and blocks array to Box<[T]> because a static array couldn't handle the size on the stack. I also tried Box<[N; T]> through Box::new() however this first allocates the array on the stack and copies the array to the heap. I believe using Box<[T]> is fine since this is fixed size (determined at runtime though) and we do the checks using the constants.
  • Added the implementation of allocating inodes.
  • Added the implementation of freeing inodes
  • Verified using unit tests.

@raghumanimehta raghumanimehta merged commit 7b73aa7 into main Jan 12, 2026
1 check passed
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.

2 participants