fn bmap(&self, inode: &Inode, blockno: u32) -> Result<u32, FsError> {
        let addr = inode.blocks[blockno as usize];
        if addr == UNUSED_BLOCKADDR {
            Err(FsError::BlockNotMapped(blockno))
        } else {
            Ok(addr)
        }
    }
/// Maps sequential block of file into a disk block address if mapped
Maps sequential block of file into a disk block address if mapped
Maps sequential block of file into a disk block address if mapped
fn bmap(&self, inode: &Inode, blockno: u32) -> Result<u32, FsError> {
        let addr = inode.blocks[blockno as usize];
        if addr == UNUSED_BLOCKADDR {
            Err(FsError::BlockNotMapped(blockno))
        } else {
            Ok(addr)
        }
    }
fn bmap ( & self , inode : & Inode , blockno : u32 ) -> Result < u32 , FsError > { let addr = inode . blocks [ blockno as usize ] ; if addr == UNUSED_BLOCKADDR { Err ( FsError :: BlockNotMapped ( blockno ) ) } else { Ok ( addr ) } }
Maps sequential block of file into a disk block address if mapped
Maps sequential block of file into a disk block address if mapped
&self
inode
&Inode
blockno
u32
&self
inode
&Inode
blockno
u32