Uh oh!
There was an error while loading. Please reload this page.
Use file status to fix TODOs in layered FS - #51
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR updates the layered file system to leverage file status information from the lower level when performing file operations, thereby improving permission handling and correctness. The key changes include modifying the return type of ensure_lower_contains to report the file type, using the lower-level file status to set file modes upon creation, and adding stricter checks for file type in unlink and mkdir operations.
Comments suppressed due to low confidence (1)
litebox/src/fs/layered.rs:71
- [nitpick] The function comment for ensure_lower_contains should be updated to reflect its new return type (FileType) rather than an empty result, to maintain clarity on its behavior.
fn ensure_lower_contains(&self, path: &str) -> Result<FileType, PathError> {
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thanks, will merge this after #50 is merged, since it is a stacked PR. |
4a1b88d to
4285998Compare🤖 SemverChecks 🤖 No breaking API changes detected Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered. |
This PR uses file status information provided by #50 (which this PR stacks on top of) to close#32 (i.e., improving the correctness of layered FS by migrating the permission flags from lower to upper layers, and performing additional checks, when applicable).