Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamical disk information #252

Merged
merged 25 commits into from
Oct 4, 2021
Merged

Conversation

vinc
Copy link
Owner

@vinc vinc commented Sep 29, 2021

  • Add SuperBlock struct
  • Add LinkedBlock struct
  • Add Drive struct
  • Store total and allocated block count in super block
  • Dynamically allocate the fs based on disk size or memory size
  • Dynamically allocate the heap based on memory size
  • Use the whole block for bitmap blocks
  • Remove hardcoded bitmap and data area and size
  • Add dynamical offset to superblock area

@vinc
Copy link
Owner Author

vinc commented Oct 2, 2021

Next step: rewrite the BlockBitmap to use Block instead of LinkedBlock and make full use of the data buffer instead of skipping the first 4 bytes containing the next block address.

@vinc vinc marked this pull request as ready for review October 4, 2021 17:21
@vinc vinc merged commit 71d83cd into trunk Oct 4, 2021
@vinc vinc deleted the feature/dynamical-disk-information branch October 4, 2021 20:16
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.

1 participant