-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes RamDisk remember where EOF is. (#677)
For a read-write RamDisk, this PR will remember what is the highest offset that was ever written into that file. When reading beyond that offset, an EOF (zero length read) is returned. Also adds support for O_TRUNC during open, which forgets about the data that was written.
- Loading branch information
1 parent
3f124a2
commit 970f905
Showing
1 changed file
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters