Working filesystem.
[pintos-anon] / src / filesys / filesys.h
1 #ifndef HEADER_FILESYS_H
2 #define HEADER_FILESYS_H 1
3
4 #include <stdbool.h>
5 #include <stdint.h>
6 #include "off_t.h"
7
8 struct disk *filesys_disk;
9
10 struct file;
11 void filesys_init (bool format);
12 bool filesys_create (const char *name, off_t initial_size);
13 bool filesys_open (const char *name, struct file *);
14 bool filesys_remove (const char *name);
15 void filesys_list (void);
16 void filesys_print (void);
17
18 void filesys_self_test (void);
19
20 #endif /* filesys.h */