static int volicon_write(const char *path, const char *buf, size_t size, off_t off, struct fuse_file_info *fi) { ERROR_IF_MAGIC_FILE(path, EACCES); return fuse_fs_write(volicon_get()->next, path, buf, size, off, fi); }
static int iconv_write(const char *path, const char *buf, size_t size, 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(ic->next, newpath, buf, size, offset, fi); free(newpath); } return err; }