From 7a19cafc5d0fb8786a61fdadba1a6014a0396e5f Mon Sep 17 00:00:00 2001 From: David McNab Date: Sat, 13 Dec 2003 02:05:46 +0000 Subject: Added 'fsync' stub in example/fusexmp.c Added support for 'fsync' and 'statfs' to python interface, and to python fs example --- example/fusexmp.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'example/fusexmp.c') diff --git a/example/fusexmp.c b/example/fusexmp.c index d97f3ca..2b44016 100644 --- a/example/fusexmp.c +++ b/example/fusexmp.c @@ -248,6 +248,18 @@ static int xmp_statfs(struct fuse_statfs *fst) return rv; } +static int xmp_release(const char *path, int flags) +{ + /* just a stub here */ + return 0; +} + +static int xmp_fsync(const char *path, int isdatasync) +{ + /* just stub this */ + return 0; +} + static struct fuse_operations xmp_oper = { getattr: xmp_getattr, readlink: xmp_readlink, @@ -267,8 +279,8 @@ static struct fuse_operations xmp_oper = { read: xmp_read, write: xmp_write, statfs: xmp_statfs, - release: NULL, - fsync: NULL + release: xmp_release, + fsync: xmp_fsync }; -- cgit v1.2.3