1 #ifndef FILESYS_FILESYS_H
2 #define FILESYS_FILESYS_H
5 #include "filesys/off_t.h"
7 /* Disk used for filesystem. */
8 extern struct disk *filesys_disk;
10 /* The free map file, opened by filesys_init() and never
12 extern struct file *free_map_file;
14 void filesys_init (bool format);
15 void filesys_done (void);
16 bool filesys_create (const char *name, off_t initial_size);
17 struct file *filesys_open (const char *name);
18 bool filesys_remove (const char *name);
19 bool filesys_list (void);
21 void filesys_self_test (void);
23 #endif /* filesys/filesys.h */