forked from gramineproject/gramine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[common] Drop offset from the protected file structure
The `offset` field supposed to represent the current file position (user's view). This isn't true. The actual offset of the file is kept in the LibOS, not in the protected files. We can observe this when lseek(2) is used. Also there isn't any API that allows us to get a current offset from protected file structure. The offset is changed when the LibOS wants to read/write the data. This field is ambiguous, so it's better to remove it and pass the requested offset to each function. Signed-off-by: Mariusz Zaborski <[email protected]>
- Loading branch information
Showing
2 changed files
with
57 additions
and
60 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
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