microsoft / microsoft/litebox

Make zero-length in-memory writes leave file size unchanged

Open
#1,325 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.7k
Forks
144
Avg merge
12h 21m
Merged PRs (30d)
146

Description

An empty positioned write beyond EOF currently grows an InMem file and zero-fills the gap. Confirm the intended compatibility behavior with the original fs author, then make zero-length writes no-ops and add focused sparse-write coverage if appropriate. Deferred from #1318 to avoid changing observable fs semantics in the refactor.

Contributor guide

Open the contributing guide

Research direction

First confirm the intended compatibility behavior with the original fs author, then inspect the InMem positioned-write path. Add focused sparse-write coverage if appropriate; done means a zero-length write beyond EOF leaves the file size unchanged and does not zero-fill the gap.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.