X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ffd-tracker%2Finode.hpp;fp=src%2Fcommon%2Ffd-tracker%2Finode.hpp;h=7f4f6fb5974406aadb401706d76faff601ee4bfe;hp=d4cb28239cfc45641d0d6a431e4eab2319254bef;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hpb=f250b40e2179eccdb83766bf4abef5a35036c47b diff --git a/src/common/fd-tracker/inode.hpp b/src/common/fd-tracker/inode.hpp index d4cb28239..7f4f6fb59 100644 --- a/src/common/fd-tracker/inode.hpp +++ b/src/common/fd-tracker/inode.hpp @@ -9,6 +9,7 @@ #define FD_TRACKER_INODE_H #include + #include struct lttng_inode; @@ -24,38 +25,34 @@ struct lttng_directory_handle; * by the fd-tracker. Users of the fd-tracker should account for this extra * file descriptor. */ -struct lttng_unlinked_file_pool *lttng_unlinked_file_pool_create( - const char *path); +struct lttng_unlinked_file_pool *lttng_unlinked_file_pool_create(const char *path); -void lttng_unlinked_file_pool_destroy( - struct lttng_unlinked_file_pool *pool); +void lttng_unlinked_file_pool_destroy(struct lttng_unlinked_file_pool *pool); /* The inode registry is protected by the fd-tracker's lock. */ struct lttng_inode_registry *lttng_inode_registry_create(void); -struct lttng_inode *lttng_inode_registry_get_inode( - struct lttng_inode_registry *registry, - struct lttng_directory_handle *handle, - const char *path, - int fd, - struct lttng_unlinked_file_pool *pool); +struct lttng_inode *lttng_inode_registry_get_inode(struct lttng_inode_registry *registry, + struct lttng_directory_handle *handle, + const char *path, + int fd, + struct lttng_unlinked_file_pool *pool); void lttng_inode_registry_destroy(struct lttng_inode_registry *registry); void lttng_inode_borrow_location(struct lttng_inode *inode, - const struct lttng_directory_handle **out_directory_handle, - const char **out_path); + const struct lttng_directory_handle **out_directory_handle, + const char **out_path); /* Returns a new reference to the inode's location directory handle. */ -struct lttng_directory_handle *lttng_inode_get_location_directory_handle( - struct lttng_inode *inode); +struct lttng_directory_handle *lttng_inode_get_location_directory_handle(struct lttng_inode *inode); int lttng_inode_rename(struct lttng_inode *inode, - struct lttng_directory_handle *old_directory_handle, - const char *old_path, - struct lttng_directory_handle *new_directory_handle, - const char *new_path, - bool overwrite); + struct lttng_directory_handle *old_directory_handle, + const char *old_path, + struct lttng_directory_handle *new_directory_handle, + const char *new_path, + bool overwrite); int lttng_inode_unlink(struct lttng_inode *inode);