microsoft / microsoft/litebox

Support locking file

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement layer-litebox
Dominant language
Rust
Stars
2.7k
Forks
144
Avg merge
12h 21m
Merged PRs (30d)
146

Description

Do you think this is better provided as a primitive by litebox::fs::FileSystem or do you think it is better managed as a lock within the Linux shim? I am leaning towards possibly adding a fn lock_fd(fd: &Fd) -> ... (and unlock) to the FileSystem trait, so that you can take a lock at the start of readv and thus get atomicity. Please open an issue to track this if so.

Originally posted by @jaybosamiya-ms in https://github.com/MSRSSP/litebox/pull/67#discussion_r2021904174

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the FileSystem trait, the Linux shim, and the readv path mentioned in the issue. Determine the locking and unlocking API needed for file descriptors and whether it provides atomicity across readv; done means the design and affected entry points are clearly defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.