#ifndef __FS_ENTRY_H #define __FS_ENTRY_H #include "inode.h" #define ENT_LEN 15 #define ENTRY_COUNT 10 struct entry_t { inode_t ent_inumber; char ent_basename[ENT_LEN]; }; int new_entry(struct file_desc_t *fd); inode_t find_entry(struct file_desc_t *fd, const char *basename); int add_entry(struct file_desc_t *dirfd, inode_t inode_no, const char *basename); void del_entry(struct file_desc_t *dirfd, inode_t inode_no); inode_t inumber_of_basename(unsigned int volume, inode_t idir, const char *basename); inode_t inumber_of_path(unsigned int volume, const char *pathname); inode_t dinumber_of_path(unsigned int volume, const char *pathname, const char **basename); #endif /* __FS_ENTRY_H */