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

Use DirEntry#size #9

Merged
merged 6 commits into from
Jan 23, 2020
Merged

Use DirEntry#size #9

merged 6 commits into from
Jan 23, 2020

Conversation

vinc
Copy link
Owner

@vinc vinc commented Jan 23, 2020

By setting the filesize (32-bit field) in directory entries we no longer have use an arbitrary size for the read and write buffer but can use that instead. The filesize limit goes from 2048 bytes to 4GB (2 ^ 32 bytes).

The bug that prevented fast writes has also been fixed by doing a "loop while busy" after ATA writes instead of sleeping for a short time in the FS code. Another bug has been fixed in the text editor to use the last line of the screen while scrolling.

A longer file was needed to test this PR so we are now including the beginning of Alice's Adventures in Wonderland by Lewis Carroll from the Project Gutenberg.

@vinc vinc merged commit 2de4861 into master Jan 23, 2020
@vinc vinc deleted the feature/dir-entry-file-size branch January 23, 2020 07:54
vinc added a commit that referenced this pull request Jan 25, 2020
* Fix off by one line error

* Change create_file and create_dir to return DirEntry

* Implement DirEntry#size

* Use filesize to copy file

* Add example of long text

* Replace sleep after write in FS by wait in ATA
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