diff options
| author | Miklos Szeredi <mszeredi@suse.cz> | 2007-10-18 06:07:02 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 17:37:31 -0400 |
| commit | 6ff958edbf39c014eb06b65ad25b736be08c4e63 (patch) | |
| tree | f87af1ae11b321cfa38c25378229f25942797385 /include/linux | |
| parent | 17637cbaba592076c221dc045ca78422b4af6290 (diff) | |
fuse: add atomic open+truncate support
This patch allows fuse filesystems to implement open(..., O_TRUNC) as a single
request, instead of separate truncate and open requests.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fuse.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 43a77d7334..436047093b 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
| @@ -101,6 +101,7 @@ struct fuse_file_lock { | |||
| 101 | #define FUSE_ASYNC_READ (1 << 0) | 101 | #define FUSE_ASYNC_READ (1 << 0) |
| 102 | #define FUSE_POSIX_LOCKS (1 << 1) | 102 | #define FUSE_POSIX_LOCKS (1 << 1) |
| 103 | #define FUSE_FILE_OPS (1 << 2) | 103 | #define FUSE_FILE_OPS (1 << 2) |
| 104 | #define FUSE_ATOMIC_O_TRUNC (1 << 3) | ||
| 104 | 105 | ||
| 105 | /** | 106 | /** |
| 106 | * Release flags | 107 | * Release flags |
