From 5e43f2c00c1ce3a9ee3ed9c2b5a9b32dabbb6e60 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 12 Dec 2003 14:06:41 +0000 Subject: added fsync operation --- include/fuse.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/fuse.h') 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 */ -- cgit v1.2.3