Add filesys_list(), filesys_dump().
[pintos-anon] / src / filesys / filesys.h
index 6f1e387c14429066484d9b02e558e20462d68dfb..a54a347e1c7c50fb1e826725b209759a5d7e9af5 100644 (file)
@@ -2,10 +2,19 @@
 #define HEADER_FILESYS_H 1
 
 #include <stdbool.h>
+#include <stdint.h>
+#include "off_t.h"
 
-void filesys_init (bool reformat);
-bool filesys_create (const char *name);
-struct file *filesys_open (const char *name);
+struct disk *filesys_disk;
+
+struct file;
+void filesys_init (bool format);
+bool filesys_create (const char *name, off_t initial_size);
+bool filesys_open (const char *name, struct file *);
 bool filesys_remove (const char *name);
+bool filesys_list (void);
+bool filesys_dump (void);
+
+void filesys_self_test (void);
 
 #endif /* filesys.h */