aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h4
-rw-r--r--include/fuse_kernel.h8
-rw-r--r--include/fuse_lowlevel.h3
3 files changed, 12 insertions, 3 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,
diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h
index e86a21a..40b5ca8 100644
--- a/include/fuse_kernel.h
+++ b/include/fuse_kernel.h
@@ -100,6 +100,7 @@
* - add reserved space to fuse_init_out
* - add FATTR_CTIME
* - add ctime and ctimensec to fuse_setattr_in
+ * - add FUSE_RENAME2 request
*/
#ifndef _LINUX_FUSE_H
@@ -353,6 +354,7 @@ enum fuse_opcode {
FUSE_BATCH_FORGET = 42,
FUSE_FALLOCATE = 43,
FUSE_READDIRPLUS = 44,
+ FUSE_RENAME2 = 45,
/* CUSE specific operations */
CUSE_INIT = 4096,
@@ -431,6 +433,12 @@ struct fuse_rename_in {
uint64_t newdir;
};
+struct fuse_rename2_in {
+ uint64_t newdir;
+ uint32_t flags;
+ uint32_t padding;
+};
+
struct fuse_link_in {
uint64_t oldnodeid;
};
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index 8eef9b9..b31868f 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -393,7 +393,8 @@ struct fuse_lowlevel_ops {
* @param newname new name
*/
void (*rename) (fuse_req_t req, fuse_ino_t parent, const char *name,
- fuse_ino_t newparent, const char *newname);
+ fuse_ino_t newparent, const char *newname,
+ unsigned int flags);
/**
* Create a hard link