aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2003-12-12 14:06:41 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2003-12-12 14:06:41 +0000
commit5e43f2c00c1ce3a9ee3ed9c2b5a9b32dabbb6e60 (patch)
treef2b700316c0ec296d18aee045fe098880602664b /include/fuse.h
parente4cf733e1c0a1a959f2f3c4f1951ad35da58011e (diff)
downloadlibfuse-5e43f2c00c1ce3a9ee3ed9c2b5a9b32dabbb6e60.tar.gz
added fsync operation
Diffstat (limited to 'include/fuse.h')
-rw-r--r--include/fuse.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 719564e..59e0ed1 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -87,7 +87,9 @@ typedef int (*fuse_dirfil_t) (fuse_dirh_t h, const char *name, int type);
* 2) all memory mappings unmapped
* This call need only be implemented if this information is required,
* otherwise set this function to NULL.
- *
+ *
+ * - fsync() has a boolean 'datasync' parameter which if TRUE then do
+ * an fdatasync() operation.
*/
struct fuse_operations {
int (*getattr) (const char *, struct stat *);
@@ -109,6 +111,7 @@ struct fuse_operations {
int (*write) (const char *, const char *, size_t, off_t);
int (*statfs) (struct fuse_statfs *);
int (*release) (const char *, int);
+ int (*fsync) (const char *, int);
};
/** Extra context that may be needed by some filesystems */