struct Ext2Ctx {
struct BlockDevice dev;
struct Ext2Super super;
unsigned long block_size;
unsigned long inodes_per_group;
unsigned long blocks_per_group;
unsigned long group_count;
}Fields
Methods
Initialise this context in place from a block device (copied into
dev). Returns 0 on success.
Read block block_no into the first block_size bytes of buf
(-1 if it is shorter).
Read inode ino into inode_out. Returns 0 on success.
§
unsigned long read_file(unsigned long ino, unsigned long offset, []unsigned char buf)source · definitionRead up to buf.len bytes of inode ino's data at byte offset.
§
unsigned long read(unsigned long inode, unsigned long offset, []unsigned char buf)source · definition§
generic<T> int readdir(unsigned long inode, fn void(&VfsNode, ?&T) cb, ?&T user)source · definition