pub enum HtreeMutation {
WriteDirBlock {
logical_block: u32,
bytes: Vec<u8>,
},
AppendNewDirBlock {
bytes: Vec<u8>,
},
}Expand description
Primitive change to the directory tree. The caller (E10 or a test) turns these into real I/O under a JBD2 transaction (E11).
Variants§
WriteDirBlock
Overwrite an existing directory leaf/root/intermediate block.
logical_block is the dir-file-relative block index.
AppendNewDirBlock
Allocate a NEW logical block at the tail of the dir file and write these bytes there. The caller also needs to extend the inode size + extent tree via E7 to make the new logical block mapped.
Trait Implementations§
Source§impl Clone for HtreeMutation
impl Clone for HtreeMutation
Source§impl Debug for HtreeMutation
impl Debug for HtreeMutation
impl Eq for HtreeMutation
Source§impl PartialEq for HtreeMutation
impl PartialEq for HtreeMutation
impl StructuralPartialEq for HtreeMutation
Auto Trait Implementations§
impl Freeze for HtreeMutation
impl RefUnwindSafe for HtreeMutation
impl Send for HtreeMutation
impl Sync for HtreeMutation
impl Unpin for HtreeMutation
impl UnsafeUnpin for HtreeMutation
impl UnwindSafe for HtreeMutation
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