diff options
author | Stefan Siegl <stesie@brokenpipe.de> | 2005-03-22 20:44:50 +0000 |
---|---|---|
committer | Stefan Siegl <stesie@brokenpipe.de> | 2005-03-22 20:44:50 +0000 |
commit | 08fcd71f6889f724423932bbbc1736c22f319560 (patch) | |
tree | cc28757abd13cbb3698072e0940f3a43ae1aa4bb | |
parent | 980625793dde49a93de1657a866a82455de9d61b (diff) |
implemented netfs_attempt_sync.\n
-rw-r--r-- | netfs.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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); } |