/// Converts a FREE block to a RESERVED block
Converts a FREE block to a RESERVED block
Converts a FREE block to a RESERVED block
pub fn become_reserved(&self) -> Result<(), Error> {
        self.check_type(BlockType::Free)?;
        let mut header = self.read_header();
        header.set_block_type(BlockType::Reserved.to_u8().unwrap());
        self.write_header(header);
        Ok(())
    }
pub fn become_reserved ( & self ) -> Result < ( ) , Error > { self . check_type ( BlockType :: Free ) ? ; let mut header = self . read_header ( ) ; header . set_block_type ( BlockType :: Reserved . to_u8 ( ) . unwrap ( ) ) ; self . write_header ( header ) ; Ok ( ( ) ) }
Converts a FREE block to a RESERVED block
Converts a FREE block to a RESERVED block
&self