Rename printk() to printf().
[pintos-anon] / src / filesys / filesys.h
index 3de5f85d7b1f4446e5635cdcc160242010dd9d73..6e6c13610ab6522732804dad68d3fe2e1437a535 100644 (file)
@@ -3,17 +3,18 @@
 
 #include <stdbool.h>
 #include <stdint.h>
+#include "filesys/off_t.h"
 
-#ifndef OFF_T
-#define OFF_T
-typedef int32_t off_t;
-#endif
+/* Disk used for filesystem. */
+extern 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);
-void filesys_list (void);
+bool filesys_list (void);
+bool filesys_dump (void);
 
 void filesys_self_test (void);