summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Siegl <stesie@brokenpipe.de>2005-03-22 20:44:50 +0000
committerStefan Siegl <stesie@brokenpipe.de>2005-03-22 20:44:50 +0000
commit08fcd71f6889f724423932bbbc1736c22f319560 (patch)
treecc28757abd13cbb3698072e0940f3a43ae1aa4bb
parent980625793dde49a93de1657a866a82455de9d61b (diff)
implemented netfs_attempt_sync.\n
-rw-r--r--netfs.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/netfs.c b/netfs.c
index fa9088202..8ee13bf68 100644
--- a/netfs.c
+++ b/netfs.c
@@ -1,5 +1,5 @@
/**********************************************************
- * main.c
+ * netfs.c
*
* Copyright(C) 2004, 2005 by Stefan Siegl <ssiegl@gmx.de>, Germany
*
@@ -365,8 +365,12 @@ error_t
netfs_attempt_sync (struct iouser *cred, struct node *node, int wait)
{
FUNC_PROLOGUE_NODE("netfs_attempt_sync", node);
- NOT_IMPLEMENTED();
- FUNC_EPILOGUE(0);
+ error_t err = EOPNOTSUPP;
+
+ if(fuse_ops->fsync)
+ err = -fuse_ops->fsync(node->nn->path, 0);
+
+ FUNC_EPILOGUE(err);
}