diff options
Diffstat (limited to 'include/erofs/inode.h')
-rw-r--r-- | include/erofs/inode.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/include/erofs/inode.h b/include/erofs/inode.h index bf20cd3..bcfd98e 100644 --- a/include/erofs/inode.h +++ b/include/erofs/inode.h @@ -15,13 +15,29 @@ extern "C" #include "erofs/internal.h" +static inline struct erofs_inode *erofs_igrab(struct erofs_inode *inode) +{ + ++inode->i_count; + return inode; +} + +u32 erofs_new_encode_dev(dev_t dev); unsigned char erofs_mode_to_ftype(umode_t mode); unsigned char erofs_ftype_to_dtype(unsigned int filetype); void erofs_inode_manager_init(void); +void erofs_insert_ihash(struct erofs_inode *inode, dev_t dev, ino_t ino); +struct erofs_inode *erofs_iget(dev_t dev, ino_t ino); +struct erofs_inode *erofs_iget_by_nid(erofs_nid_t nid); unsigned int erofs_iput(struct erofs_inode *inode); erofs_nid_t erofs_lookupnid(struct erofs_inode *inode); -struct erofs_inode *erofs_mkfs_build_tree_from_path(struct erofs_inode *parent, - const char *path); +struct erofs_dentry *erofs_d_alloc(struct erofs_inode *parent, + const char *name); +int erofs_rebuild_dump_tree(struct erofs_inode *dir); +int erofs_init_empty_dir(struct erofs_inode *dir); +int __erofs_fill_inode(struct erofs_inode *inode, struct stat *st, + const char *path); +struct erofs_inode *erofs_new_inode(void); +struct erofs_inode *erofs_mkfs_build_tree_from_path(const char *path); struct erofs_inode *erofs_mkfs_build_special_from_fd(int fd, const char *name); #ifdef __cplusplus |