summaryrefslogtreecommitdiffstats
path: root/pintos-progos/filesys/filesys.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-03-26 12:54:45 +0200
committermanuel <manuel@mausz.at>2012-03-26 12:54:45 +0200
commitb5f0874cd96ee2a62aabc645b9626c2749cb6a01 (patch)
tree1262e4bbe0634de6650be130c36e0538240f4cbf /pintos-progos/filesys/filesys.h
downloadprogos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.gz
progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.bz2
progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.zip
initial pintos checkin
Diffstat (limited to 'pintos-progos/filesys/filesys.h')
-rw-r--r--pintos-progos/filesys/filesys.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/pintos-progos/filesys/filesys.h b/pintos-progos/filesys/filesys.h
new file mode 100644
index 0000000..c1cda84
--- /dev/null
+++ b/pintos-progos/filesys/filesys.h
@@ -0,0 +1,20 @@
1#ifndef FILESYS_FILESYS_H
2#define FILESYS_FILESYS_H
3
4#include <stdbool.h>
5#include "filesys/off_t.h"
6
7/* Sectors of system file inodes. */
8#define FREE_MAP_SECTOR 0 /* Free map file inode sector. */
9#define ROOT_DIR_SECTOR 1 /* Root directory file inode sector. */
10
11/* Block device that contains the file system. */
12struct block *fs_device;
13
14void filesys_init (bool format);
15void filesys_done (void);
16bool filesys_create (const char *name, off_t initial_size);
17struct file *filesys_open (const char *name);
18bool filesys_remove (const char *name);
19
20#endif /* filesys/filesys.h */