Rewrite filesystem to support Unix "delete" semantics.
[pintos-anon] / src / filesys / filesys.h
1 #ifndef FILESYS_FILESYS_H
2 #define FILESYS_FILESYS_H
3
4 #include <stdbool.h>
5 #include "filesys/off_t.h"
6
7 /* Disk used for filesystem. */
8 extern struct disk *filesys_disk;
9
10 /* The free map file, opened by filesys_init() and never
11    closed. */
12 extern struct file *free_map_file;
13
14 void filesys_init (bool format);
15 bool filesys_create (const char *name, off_t initial_size);
16 struct file *filesys_open (const char *name);
17 bool filesys_remove (const char *name);
18 bool filesys_list (void);
19 bool filesys_dump (void);
20
21 void filesys_self_test (void);
22
23 #endif /* filesys/filesys.h */