#include <stdbool.h>
#include "filesys/off_t.h"
Go to the source code of this file.
Defines | |
#define | FREE_MAP_SECTOR 0 |
#define | ROOT_DIR_SECTOR 1 |
Functions | |
void | filesys_init (bool format) |
void | filesys_done (void) |
bool | filesys_create (const char *name, off_t initial_size) |
struct file * | filesys_open (const char *name) |
bool | filesys_remove (const char *name) |
Variables | |
struct block * | fs_device |
#define FREE_MAP_SECTOR 0 |
Definition at line 9 of file filesys.h.
Referenced by free_map_create(), free_map_init(), and free_map_open().
#define ROOT_DIR_SECTOR 1 |
Definition at line 10 of file filesys.h.
Referenced by dir_open_root(), do_format(), and free_map_init().
bool filesys_create | ( | const char * | name, | |
off_t | initial_size | |||
) |
Definition at line 47 of file filesys.c.
References dir_add(), dir_close(), dir_open_root(), free_map_allocate(), free_map_release(), inode_create(), and NULL.
Referenced by fsutil_extract().
void filesys_done | ( | void | ) |
void filesys_init | ( | bool | format | ) |
Definition at line 19 of file filesys.c.
References BLOCK_FILESYS, block_get_role(), do_format(), free_map_init(), free_map_open(), inode_init(), NULL, and PANIC.
Referenced by main().
struct file* filesys_open | ( | const char * | name | ) | [read] |
Definition at line 68 of file filesys.c.
References dir_close(), dir_lookup(), dir_open_root(), file_open(), and NULL.
Referenced by fsutil_append(), fsutil_cat(), fsutil_extract(), and load().
bool filesys_remove | ( | const char * | name | ) |
Definition at line 85 of file filesys.c.
References dir_close(), dir_open_root(), dir_remove(), and NULL.
Referenced by fsutil_rm().