projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move TODO.
[pintos-anon]
/
src
/
filesys
/
filesys.h
diff --git
a/src/filesys/filesys.h
b/src/filesys/filesys.h
index 6e6c13610ab6522732804dad68d3fe2e1437a535..9563fbb37e2926a255d4256db8b268666e0a3870 100644
(file)
--- a/
src/filesys/filesys.h
+++ b/
src/filesys/filesys.h
@@
-1,21
+1,24
@@
-#ifndef
HEADER
_FILESYS_H
-#define
HEADER_FILESYS_H 1
+#ifndef
FILESYS
_FILESYS_H
+#define
FILESYS_FILESYS_H
#include <stdbool.h>
#include <stdbool.h>
-#include <stdint.h>
#include "filesys/off_t.h"
/* Disk used for filesystem. */
extern struct disk *filesys_disk;
#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_init (bool format);
+void filesys_done (void);
bool filesys_create (const char *name, off_t initial_size);
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);
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 */