X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ffd-tracker%2Finode.h;h=67e63eca46fa75fb4b25524aed2f39bdb0ced5be;hp=7e95c0726efc9057f67b8457569067f0118c0770;hb=938bd42282f0ba31bf22ad23b0bd3e04e848e052;hpb=72c2e2e17b2f290892664219ceb0e29e9db70fba diff --git a/src/common/fd-tracker/inode.h b/src/common/fd-tracker/inode.h index 7e95c0726..67e63eca4 100644 --- a/src/common/fd-tracker/inode.h +++ b/src/common/fd-tracker/inode.h @@ -24,15 +24,19 @@ struct lttng_directory_handle; * by the fd-tracker. Users of the fd-tracker should account for this extra * file descriptor. */ +LTTNG_HIDDEN struct lttng_unlinked_file_pool *lttng_unlinked_file_pool_create( const char *path); +LTTNG_HIDDEN void lttng_unlinked_file_pool_destroy( struct lttng_unlinked_file_pool *pool); /* The inode registry is protected by the fd-tracker's lock. */ +LTTNG_HIDDEN struct lttng_inode_registry *lttng_inode_registry_create(void); +LTTNG_HIDDEN struct lttng_inode *lttng_inode_registry_get_inode( struct lttng_inode_registry *registry, struct lttng_directory_handle *handle, @@ -40,16 +44,20 @@ struct lttng_inode *lttng_inode_registry_get_inode( int fd, struct lttng_unlinked_file_pool *pool); +LTTNG_HIDDEN void lttng_inode_registry_destroy(struct lttng_inode_registry *registry); +LTTNG_HIDDEN void lttng_inode_borrow_location(struct lttng_inode *inode, const struct lttng_directory_handle **out_directory_handle, const char **out_path); /* Returns a new reference to the inode's location directory handle. */ +LTTNG_HIDDEN struct lttng_directory_handle *lttng_inode_get_location_directory_handle( struct lttng_inode *inode); +LTTNG_HIDDEN int lttng_inode_rename(struct lttng_inode *inode, struct lttng_directory_handle *old_directory_handle, const char *old_path, @@ -57,8 +65,10 @@ int lttng_inode_rename(struct lttng_inode *inode, const char *new_path, bool overwrite); +LTTNG_HIDDEN int lttng_inode_unlink(struct lttng_inode *inode); +LTTNG_HIDDEN void lttng_inode_put(struct lttng_inode *inode); #endif /* FD_TRACKER_INODE_H */