aboutsummaryrefslogtreecommitdiff
path: root/include/fuse.h
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <mszeredi@suse.cz>2014-07-15 18:02:19 +0200
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2014-07-15 18:02:19 +0200
commitb49cf754f9d2db3a426aeb6111fa94d90270fb93 (patch)
tree18aca31da248e19e1072e6c40d21cb198d05c5ac /include/fuse.h
parent978d10a42b2cfccf6bfc4df1cfad480ac3bbcb3d (diff)
libfuse: add flags to ->rename()
See renameat2() system call in linux-3.15 and later kernels.
Diffstat (limited to 'include/fuse.h')
-rw-r--r--include/fuse.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fuse.h b/include/fuse.h
index edece77..bf86bda 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -162,7 +162,7 @@ struct fuse_operations {
int (*symlink) (const char *, const char *);
/** Rename a file */
- int (*rename) (const char *, const char *);
+ int (*rename) (const char *, const char *, unsigned int);
/** Create a hard link to a file */
int (*link) (const char *, const char *);
@@ -808,7 +808,7 @@ int fuse_fs_getattr(struct fuse_fs *fs, const char *path, struct stat *buf);
int fuse_fs_fgetattr(struct fuse_fs *fs, const char *path, struct stat *buf,
struct fuse_file_info *fi);
int fuse_fs_rename(struct fuse_fs *fs, const char *oldpath,
- const char *newpath);
+ const char *newpath, unsigned int flags);
int fuse_fs_unlink(struct fuse_fs *fs, const char *path);
int fuse_fs_rmdir(struct fuse_fs *fs, const char *path);
int fuse_fs_symlink(struct fuse_fs *fs, const char *linkname,