pub struct IndirectPlan {
pub i_block: [u8; 60],
pub block_writes: Vec<(u64, Vec<u8>)>,
pub indirect_blocks_allocated: Vec<u64>,
}Expand description
Plan output: the new i_block region, plus the indirect-block writes the
caller MUST persist before publishing the inode, plus the list of physical
blocks the planner allocated for the indirect tree (which the caller must
mark in the block bitmap and credit against BGD/SB counters).
The data blocks themselves are NOT in block_writes — plan_contiguous
does not own data; it only tracks the indirect-tree metadata blocks. The
caller already knows the data block range and writes the payload there
directly.
Fields§
§i_block: [u8; 60]§block_writes: Vec<(u64, Vec<u8>)>§indirect_blocks_allocated: Vec<u64>Trait Implementations§
Source§impl Clone for IndirectPlan
impl Clone for IndirectPlan
Auto Trait Implementations§
impl Freeze for IndirectPlan
impl RefUnwindSafe for IndirectPlan
impl Send for IndirectPlan
impl Sync for IndirectPlan
impl Unpin for IndirectPlan
impl UnsafeUnpin for IndirectPlan
impl UnwindSafe for IndirectPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more