X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffilesys%2Finode.h;h=296ffd1633a4a8257c7da8dc3fe49ae5f87eb896;hb=e5c7df720147528ab310fe5ac983cc5115b998da;hp=d7fe86b190024d31176fb59d07e29940134540a0;hpb=993c1d9f4452e2edd851f3175dfdf317f18bdb9f;p=pintos-anon diff --git a/src/filesys/inode.h b/src/filesys/inode.h index d7fe86b..296ffd1 100644 --- a/src/filesys/inode.h +++ b/src/filesys/inode.h @@ -1,16 +1,16 @@ #ifndef FILESYS_INODE_H #define FILESYS_INODE_H +#include #include "filesys/off_t.h" #include "devices/disk.h" struct bitmap; void inode_init (void); -struct inode *inode_create (struct bitmap *, disk_sector_t, off_t); +bool inode_create (struct bitmap *, disk_sector_t, off_t); struct inode *inode_open (disk_sector_t); void inode_close (struct inode *); -void inode_commit (const struct inode *); void inode_remove (struct inode *); disk_sector_t inode_byte_to_sector (const struct inode *, off_t); off_t inode_length (const struct inode *);