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 --- example/fusexmp.c | 4 +++- example/hello.c | 3 ++- example/null.c | 5 +++-- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'example') diff --git a/example/fusexmp.c b/example/fusexmp.c index e783423..d97f3ca 100644 --- a/example/fusexmp.c +++ b/example/fusexmp.c @@ -267,7 +267,9 @@ static struct fuse_operations xmp_oper = { read: xmp_read, write: xmp_write, statfs: xmp_statfs, - release: NULL + release: NULL, + fsync: NULL + }; int main(int argc, char *argv[]) diff --git a/example/hello.c b/example/hello.c index cd8fb5d..6b461d0 100644 --- a/example/hello.c +++ b/example/hello.c @@ -86,7 +86,8 @@ static struct fuse_operations hello_oper = { read: hello_read, write: NULL, statfs: NULL, - release: NULL + release: NULL, + fsync: NULL }; int main(int argc, char *argv[]) diff --git a/example/null.c b/example/null.c index b712b5c..ca79dc4 100644 --- a/example/null.c +++ b/example/null.c @@ -12,7 +12,7 @@ #include #include -#define UNUSED __attribute__((unused)) +#define UNUSED(x) x __attribute__((unused)) static int null_getattr(const char *path, struct stat *stbuf) { @@ -89,7 +89,8 @@ static struct fuse_operations null_oper = { read: null_read, write: null_write, statfs: null_statfs, - release: NULL + release: NULL, + fsync: NULL }; int main(int argc, char *argv[]) -- cgit v1.2.3