示例#1
0
文件: volicon.c 项目: arritjenof/fuse
static int
volicon_write_buf(const char *path, struct fuse_bufvec *buf, off_t offset,
		  struct fuse_file_info *fi)
{
	ERROR_IF_MAGIC_FILE(path, EACCES);

	return fuse_fs_write_buf(volicon_get()->next, path, buf, offset, fi);
}
示例#2
0
static int subdir_write_buf(const char *path, struct fuse_bufvec *buf,
			off_t offset, struct fuse_file_info *fi)
{
	struct subdir *d = subdir_get();
	char *newpath;
	int err = subdir_addpath(d, path, &newpath);
	if (!err) {
		err = fuse_fs_write_buf(d->next, newpath, buf, offset, fi);
		free(newpath);
	}
	return err;
}
示例#3
0
文件: iconv.c 项目: cephpp/fuse
static int iconv_write_buf(const char *path, struct fuse_bufvec *buf,
			   off_t offset, struct fuse_file_info *fi)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_write_buf(ic->next, newpath, buf, offset, fi);
		free(newpath);
	}
	return err;
}