#include "filesys/filesys.h"
#include <debug.h>
#include <stdio.h>
#include <string.h>
#include "filesys/file.h"
#include "filesys/free-map.h"
#include "filesys/inode.h"
#include "filesys/directory.h"
Go to the source code of this file.
Functions | |
static void | do_format (void) |
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 |
static void do_format | ( | void | ) | [static] |
Definition at line 96 of file filesys.c.
References dir_create(), free_map_close(), free_map_create(), PANIC, printf(), and ROOT_DIR_SECTOR.
Referenced by filesys_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().
Definition at line 12 of file filesys.c.
Referenced by free_map_init(), inode_create(), inode_open(), inode_read_at(), and inode_write_at().