diff options
| author | Miklos Szeredi <mszeredi@suse.cz> | 2014-04-28 10:43:44 -0400 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-04-28 10:43:44 -0400 |
| commit | 1560c974dcd40a8d3f193283acd7cc6aee13dc13 (patch) | |
| tree | 844409c63c329b8fdee462ead3ff87aac3201405 /include/uapi/linux | |
| parent | 4ace1f85a7cdab5453c2e12029ff978dd4cd6155 (diff) | |
fuse: add renameat2 support
Support RENAME_EXCHANGE and RENAME_NOREPLACE flags on the userspace ABI.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/fuse.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h index e86a21acef75..40b5ca8a1b1f 100644 --- a/include/uapi/linux/fuse.h +++ b/include/uapi/linux/fuse.h | |||
| @@ -100,6 +100,7 @@ | |||
| 100 | * - add reserved space to fuse_init_out | 100 | * - add reserved space to fuse_init_out |
| 101 | * - add FATTR_CTIME | 101 | * - add FATTR_CTIME |
| 102 | * - add ctime and ctimensec to fuse_setattr_in | 102 | * - add ctime and ctimensec to fuse_setattr_in |
| 103 | * - add FUSE_RENAME2 request | ||
| 103 | */ | 104 | */ |
| 104 | 105 | ||
| 105 | #ifndef _LINUX_FUSE_H | 106 | #ifndef _LINUX_FUSE_H |
| @@ -353,6 +354,7 @@ enum fuse_opcode { | |||
| 353 | FUSE_BATCH_FORGET = 42, | 354 | FUSE_BATCH_FORGET = 42, |
| 354 | FUSE_FALLOCATE = 43, | 355 | FUSE_FALLOCATE = 43, |
| 355 | FUSE_READDIRPLUS = 44, | 356 | FUSE_READDIRPLUS = 44, |
| 357 | FUSE_RENAME2 = 45, | ||
| 356 | 358 | ||
| 357 | /* CUSE specific operations */ | 359 | /* CUSE specific operations */ |
| 358 | CUSE_INIT = 4096, | 360 | CUSE_INIT = 4096, |
| @@ -431,6 +433,12 @@ struct fuse_rename_in { | |||
| 431 | uint64_t newdir; | 433 | uint64_t newdir; |
| 432 | }; | 434 | }; |
| 433 | 435 | ||
| 436 | struct fuse_rename2_in { | ||
| 437 | uint64_t newdir; | ||
| 438 | uint32_t flags; | ||
| 439 | uint32_t padding; | ||
| 440 | }; | ||
| 441 | |||
| 434 | struct fuse_link_in { | 442 | struct fuse_link_in { |
| 435 | uint64_t oldnodeid; | 443 | uint64_t oldnodeid; |
| 436 | }; | 444 | }; |
