Lines Matching refs:fh
272 fi->fh = handle; in fuse_fs_access_create()
277 fi->fh = INVALID_FILE_HANDLE; in fuse_fs_access_create()
293 if (fi->fh == INVALID_FILE_HANDLE) { in fuse_fs_access_release()
297 fs_close(&files[fi->fh]); in fuse_fs_access_release()
299 release_file_handle(fi->fh); in fuse_fs_access_release()
311 if (fi->fh == INVALID_FILE_HANDLE) { in fuse_fs_access_read()
315 err = fs_seek(&files[fi->fh], off, FS_SEEK_SET); in fuse_fs_access_read()
320 err = fs_read(&files[fi->fh], buf, size); in fuse_fs_access_read()
332 if (fi->fh == INVALID_FILE_HANDLE) { in fuse_fs_access_write()
336 err = fs_seek(&files[fi->fh], off, FS_SEEK_SET); in fuse_fs_access_write()
341 err = fs_write(&files[fi->fh], buf, size); in fuse_fs_access_write()
353 if (fi->fh == INVALID_FILE_HANDLE) { in fuse_fs_access_ftruncate()
357 err = fs_truncate(&files[fi->fh], size); in fuse_fs_access_ftruncate()