uint32_t block_sector_t
Index of a block device sector.
void inode_close(struct inode *)
Closes INODE and writes it to disk.
struct inode * inode_open(block_sector_t)
Reads an inode from SECTOR and returns a ‘struct inode’ that contains it.
void inode_deny_write(struct inode *)
Disables writes to INODE.
bool inode_create(block_sector_t, off_t)
Initializes an inode with LENGTH bytes of data and writes the new inode to sector SECTOR on the file ...
off_t inode_length(const struct inode *)
filesys/inode.h
void inode_allow_write(struct inode *)
Re-enables writes to INODE.
block_sector_t inode_get_inumber(const struct inode *)
Returns INODE's inode number.
struct inode * inode_reopen(struct inode *)
Reopens and returns INODE.
off_t inode_write_at(struct inode *, const void *, off_t size, off_t offset)
Writes SIZE bytes from BUFFER into INODE, starting at OFFSET.
void inode_init(void)
Initializes the inode module.
void inode_remove(struct inode *)
Marks INODE to be deleted when it is closed by the last caller who has it open.
off_t inode_read_at(struct inode *, void *, off_t size, off_t offset)
Reads SIZE bytes from INODE into BUFFER, starting at position OFFSET.
int32_t off_t
An offset within a file.
From the outside, a bitmap is an array of bits.