Lines Matching refs:fi

165 			      struct fuse_file_info *fi)  in fuse_fs_access_readdir()  argument
173 ARG_UNUSED(fi); in fuse_fs_access_readdir()
246 struct fuse_file_info *fi) in fuse_fs_access_create() argument
262 fi->fh = handle; in fuse_fs_access_create()
267 fi->fh = INVALID_FILE_HANDLE; in fuse_fs_access_create()
274 static int fuse_fs_access_open(const char *path, struct fuse_file_info *fi) in fuse_fs_access_open() argument
276 return fuse_fs_access_create(path, 0, fi); in fuse_fs_access_open()
279 static int fuse_fs_access_release(const char *path, struct fuse_file_info *fi) in fuse_fs_access_release() argument
283 if (fi->fh == INVALID_FILE_HANDLE) { in fuse_fs_access_release()
287 fs_close(&files[fi->fh]); in fuse_fs_access_release()
289 release_file_handle(fi->fh); in fuse_fs_access_release()
295 off_t off, struct fuse_file_info *fi) in fuse_fs_access_read() argument
301 if (fi->fh == INVALID_FILE_HANDLE) { in fuse_fs_access_read()
305 err = fs_seek(&files[fi->fh], off, FS_SEEK_SET); in fuse_fs_access_read()
310 err = fs_read(&files[fi->fh], buf, size); in fuse_fs_access_read()
316 off_t off, struct fuse_file_info *fi) in fuse_fs_access_write() argument
322 if (fi->fh == INVALID_FILE_HANDLE) { in fuse_fs_access_write()
326 err = fs_seek(&files[fi->fh], off, FS_SEEK_SET); in fuse_fs_access_write()
331 err = fs_write(&files[fi->fh], buf, size); in fuse_fs_access_write()
337 struct fuse_file_info *fi) in fuse_fs_access_ftruncate() argument
343 if (fi->fh == INVALID_FILE_HANDLE) { in fuse_fs_access_ftruncate()
347 err = fs_truncate(&files[fi->fh], size); in fuse_fs_access_ftruncate()