aboutsummaryrefslogtreecommitdiff
path: root/src/fuse/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuse/write.c')
-rw-r--r--src/fuse/write.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/fuse/write.c b/src/fuse/write.c
new file mode 100644
index 0000000..617d21f
--- /dev/null
+++ b/src/fuse/write.c
@@ -0,0 +1,26 @@
1/*
2 * write.c - FUSE write function
3 *
4 * Created on: Mar 14, 2012
5 * Author: mg
6 *
7 * Write data to an open file
8 *
9 * Write should return exactly the number of bytes requested
10 * except on error. An exception to this is when the 'direct_io'
11 * mount option is specified (see read operation).
12 *
13 * Changed in version 2.2
14 */
15
16#include <string.h>
17#include <errno.h>
18#include <unistd.h>
19#include <fuse.h>
20
21
22int gn_write(const char *path, const char *buf, size_t size, off_t offset,
23 struct fuse_file_info *fi)
24{
25 return -ENOENT;
26}