From b49cf754f9d2db3a426aeb6111fa94d90270fb93 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 15 Jul 2014 18:02:19 +0200 Subject: libfuse: add flags to ->rename() See renameat2() system call in linux-3.15 and later kernels. --- include/fuse.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/fuse.h') 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, -- cgit v1.2.3