1#ifndef FILESYS_FILESYS_H
2#define FILESYS_FILESYS_H
8#define FREE_MAP_SECTOR 0
9#define ROOT_DIR_SECTOR 1
struct block * fs_device
Block device that contains the file system.
struct file * filesys_open(const char *name)
Opens the file with the given NAME.
bool filesys_remove(const char *name)
filesys/filesys.h
void filesys_done(void)
Shuts down the file system module, writing any unwritten data to disk.
void filesys_init(bool format)
Initializes the file system module.
bool filesys_create(const char *name, off_t initial_size)
Creates a file named NAME with the given INITIAL_SIZE.
int32_t off_t
An offset within a file.