Use 9600 bps for Pintos serial, to match the speed used by the loader.
[pintos-anon] / src / filesys / filesys.h
index 44c89f48b4eb25b06155ee101be36404c3bbc7ec..caef83c45c17f4986a3fc8838769a64d7a1e7606 100644 (file)
@@ -2,20 +2,19 @@
 #define FILESYS_FILESYS_H
 
 #include <stdbool.h>
-#include <stdint.h>
 #include "filesys/off_t.h"
 
-/* Disk used for filesystem. */
+/* Sectors of system file inodes. */
+#define FREE_MAP_SECTOR 0       /* Free map file inode sector. */
+#define ROOT_DIR_SECTOR 1       /* Root directory file inode sector. */
+
+/* Disk used for file system. */
 extern struct disk *filesys_disk;
 
-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);
-
-void filesys_self_test (void);
 
 #endif /* filesys/filesys.h */