Skip to content

Directory write check logic sits better in shim - #1386

Merged
Jay Bosamiya (Microsoft) (jaybosamiya-ms) merged 2 commits into
mainfrom
jayb/directory-write-check-shim
Sep 19, 2026
Merged

Jay Bosamiya (Microsoft) (jaybosamiya-ms) merged 2 commits into
mainfrom
jayb/directory-write-check-shim

Conversation

@jaybosamiya-ms

@jaybosamiya-ms Jay Bosamiya (Microsoft) (jaybosamiya-ms) commented Sep 16, 2026

Copy link
Copy Markdown
Member

This PR decides to explicitly diverge the LiteBox core file system semantics from POSIX. It is part of the longer-term plan to move away from the OFlags and use a more broader-applicable abstraction there anyways. Roughly, POSIX requires that open of O_WRONLY or such on a directory should return an EISDIR. However, this is a shim-level concern, and the core should not be concerned with this sort of semantics. Thus, I've moved this decision into the shim.

Comment thread litebox_shim_linux/src/syscalls/file.rs
@jaybosamiya-ms

Copy link
Copy Markdown
Member Author

Related: #1255 (specifically, see a871fb5) and #894 (afe6cdd)

@github-actions

Copy link
Copy Markdown

🤖 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.

@wdcui Weidong Cui (wdcui) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

Merged via the queue into main with commit 4964033 Sep 19, 2026
15 checks passed
@jaybosamiya-ms
Jay Bosamiya (Microsoft) (jaybosamiya-ms) deleted the jayb/directory-write-check-shim branch September 19, 2026 01:44
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.

2 participants