Closed travis1829 closed 2 years ago
After implementing the Lfs, we should refactor it using some new types.
SegBlockGuard
Buf
, and only write to a SegBlockGuard
.SegBlockGuard
only from the Segment
's methods.SegBlockGuard
drops, automatically commits the Segment
if it was full.Segment
after the writing is done.Buf
, maybe we want to add a new type, or make Buf::deref_inner_mut
usable only when #[cfg(feature = "ufs")].bors r+
Build succeeded: