aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorDavid McNab <david@rebirthing.co.nz>2003-12-13 02:05:46 +0000
committerDavid McNab <david@rebirthing.co.nz>2003-12-13 02:05:46 +0000
commit7a19cafc5d0fb8786a61fdadba1a6014a0396e5f (patch)
tree1ce570e0ec979f5d07d0ab17052421786e4006f0 /example
parent5e43f2c00c1ce3a9ee3ed9c2b5a9b32dabbb6e60 (diff)
downloadlibfuse-7a19cafc5d0fb8786a61fdadba1a6014a0396e5f.tar.gz
Added 'fsync' stub in example/fusexmp.c
Added support for 'fsync' and 'statfs' to python interface, and to python fs example
Diffstat (limited to 'example')
-rw-r--r--example/fusexmp.c16
1 files changed, 14 insertions, 2 deletions
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
};