Clean up inode code:
[pintos-anon] / src / filesys / inode.h
1 #ifndef FILESYS_INODE_H
2 #define FILESYS_INODE_H
3
4 #include <stdbool.h>
5 #include "filesys/off_t.h"
6 #include "devices/disk.h"
7
8 struct bitmap;
9
10 void inode_init (void);
11 bool inode_create (struct bitmap *, disk_sector_t, off_t);
12 struct inode *inode_open (disk_sector_t);
13 void inode_close (struct inode *);
14 void inode_remove (struct inode *);
15 disk_sector_t inode_byte_to_sector (const struct inode *, off_t);
16 off_t inode_length (const struct inode *);
17 void inode_print (const struct inode *);
18
19 #endif /* filesys/inode.h */