aboutsummaryrefslogtreecommitdiff
path: root/src/fuse/write.c
blob: 617d21f6b6347574aac08779779d823f44f41f8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * write.c - FUSE write function
 *
 *  Created on: Mar 14, 2012
 *      Author: mg
 *
 *	 Write data to an open file
 *
 * Write should return exactly the number of bytes requested
 * except on error.	 An exception to this is when the 'direct_io'
 * mount option is specified (see read operation).
 *
 * Changed in version 2.2
 */

#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fuse.h>


int gn_write(const char *path, const char *buf, size_t size, off_t offset,
	struct fuse_file_info *fi)
{
	return -ENOENT;
}