Get rid of file system "dump" operations because they weren't useful
[pintos-anon] / src / filesys / filesys.h
index 1f06c34bcf878144161b0de9645a455eef28367d..064c5772bce39becfaeb3d0bf9eef8f5d37b0dc6 100644 (file)
@@ -1,21 +1,23 @@
-#ifndef HEADER_FILESYS_H
-#define HEADER_FILESYS_H 1
+#ifndef FILESYS_FILESYS_H
+#define FILESYS_FILESYS_H
 
 #include <stdbool.h>
-#include <stdint.h>
-#include "off_t.h"
+#include "filesys/off_t.h"
 
 /* Disk used for filesystem. */
 extern struct disk *filesys_disk;
 
-struct file;
+/* The free map file, opened by filesys_init() and never
+   closed. */
+extern struct file *free_map_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);
 
 void filesys_self_test (void);
 
-#endif /* filesys.h */
+#endif /* filesys/filesys.h */