Start work on partition support.
[pintos-anon] / src / filesys / filesys.h
index 44c89f48b4eb25b06155ee101be36404c3bbc7ec..fb969f1db7509d61894b630a1b3f4915a383842d 100644 (file)
@@ -2,16 +2,19 @@
 #define FILESYS_FILESYS_H
 
 #include <stdbool.h>
-#include <stdint.h>
 #include "filesys/off_t.h"
 
 /* Disk used for filesystem. */
-extern struct disk *filesys_disk;
+extern struct partition *filesys_partition;
+
+/* The free map file, opened by filesys_init() and never
+   closed. */
+extern struct file *free_map_file;
 
-struct file;
 void filesys_init (bool format);
+void filesys_done (void);
 bool filesys_create (const char *name, off_t initial_size);
-bool filesys_open (const char *name, struct file *);
+struct file *filesys_open (const char *name);
 bool filesys_remove (const char *name);
 bool filesys_list (void);
 bool filesys_dump (void);