diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-09-09 16:10:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 17:03:47 -0400 |
commit | 8254798199332966e2ab647380c990193af7e854 (patch) | |
tree | ad4a9721a872fbdec0be107f35684864a1a94053 /fs/fuse/fuse_i.h | |
parent | b36c31ba95f0fe0a03c727300d9c4c54438a5636 (diff) |
[PATCH] FUSE: add fsync operation for directories
This patch adds a new FSYNCDIR request, which is sent when fsync is called
on directories. This operation is available in libfuse 2.3-pre1 or
greater.
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 84849601363e..d7647289d8a1 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
@@ -248,6 +248,9 @@ struct fuse_conn { | |||
248 | /** Is fsync not implemented by fs? */ | 248 | /** Is fsync not implemented by fs? */ |
249 | unsigned no_fsync : 1; | 249 | unsigned no_fsync : 1; |
250 | 250 | ||
251 | /** Is fsyncdir not implemented by fs? */ | ||
252 | unsigned no_fsyncdir : 1; | ||
253 | |||
251 | /** Is flush not implemented by fs? */ | 254 | /** Is flush not implemented by fs? */ |
252 | unsigned no_flush : 1; | 255 | unsigned no_flush : 1; |
253 | 256 | ||
@@ -340,6 +343,12 @@ int fuse_open_common(struct inode *inode, struct file *file, int isdir); | |||
340 | int fuse_release_common(struct inode *inode, struct file *file, int isdir); | 343 | int fuse_release_common(struct inode *inode, struct file *file, int isdir); |
341 | 344 | ||
342 | /** | 345 | /** |
346 | * Send FSYNC or FSYNCDIR request | ||
347 | */ | ||
348 | int fuse_fsync_common(struct file *file, struct dentry *de, int datasync, | ||
349 | int isdir); | ||
350 | |||
351 | /** | ||
343 | * Initialise file operations on a regular file | 352 | * Initialise file operations on a regular file |
344 | */ | 353 | */ |
345 | void fuse_init_file_inode(struct inode *inode); | 354 | void fuse_init_file_inode(struct inode *inode); |