fix for unlink race condition

This commit is contained in:
Antonio SJ Musumeci 2019-05-21 22:57:02 -04:00
parent 060cae6270
commit 61cded5b34
4 changed files with 33 additions and 21 deletions

View file

@ -129,7 +129,7 @@ struct fuse_operations {
* while open. Helps manage the fact the kernel usually does
* not send fh with getattr requests.
*/
int (*prepare_hide)(const char *name_, uint64_t *fh_, int type_);
int (*prepare_hide)(const char *name_, uint64_t *fh_);
int (*free_hide)(const uint64_t fh_);
/** Remove a file */
@ -921,6 +921,9 @@ int fuse_fs_fallocate(struct fuse_fs *fs, const char *path, int mode,
void fuse_fs_init(struct fuse_fs *fs, struct fuse_conn_info *conn);
void fuse_fs_destroy(struct fuse_fs *fs);
int fuse_fs_prepare_hide(struct fuse_fs *fs, const char *path, uint64_t *fh);
int fuse_fs_free_hide(struct fuse_fs *fs, uint64_t fh);
int fuse_notify_poll(struct fuse_pollhandle *ph);
/**