Lines Matching refs:curfile
92 struct ffsb_file *curfile = NULL; in ffsb_readfile() local
107 curfile = choose_file_reader(bf, rd); in ffsb_readfile()
108 fd = fhopenread(curfile->name, ft, fs); in ffsb_readfile()
110 filesize = ffsb_get_filesize(curfile->name); in ffsb_readfile()
182 unlock_file_reader(curfile); in ffsb_readfile()
195 struct ffsb_file *curfile = NULL; in ffsb_readall() local
205 curfile = choose_file_reader(bf, rd); in ffsb_readall()
206 fd = fhopenread(curfile->name, ft, fs); in ffsb_readall()
208 filesize = ffsb_get_filesize(curfile->name); in ffsb_readall()
211 unlock_file_reader(curfile); in ffsb_readall()
225 struct ffsb_file *curfile = NULL; in ffsb_writefile_core() local
237 curfile = choose_file_reader(bf, rd); in ffsb_writefile_core()
238 fd = fhopenwrite(curfile->name, ft, fs); in ffsb_writefile_core()
240 filesize = ffsb_get_filesize(curfile->name); in ffsb_writefile_core()
276 unlock_file_reader(curfile); in ffsb_writefile_core()
309 struct ffsb_file *curfile = NULL; in ffsb_writeall_core() local
319 curfile = choose_file_reader(bf, rd); in ffsb_writeall_core()
320 fd = fhopenwrite(curfile->name, ft, fs); in ffsb_writeall_core()
322 filesize = ffsb_get_filesize(curfile->name); in ffsb_writeall_core()
332 unlock_file_reader(curfile); in ffsb_writeall_core()
366 struct ffsb_file *curfile; in ffsb_appendfile_core() local
376 curfile = choose_file_reader(bf, rd); in ffsb_appendfile_core()
377 fd = fhopenappend(curfile->name, ft, fs); in ffsb_appendfile_core()
379 unlock_file_reader(curfile); in ffsb_appendfile_core()
381 curfile->size += (uint64_t) write_size; in ffsb_appendfile_core()
489 struct ffsb_file *curfile = NULL; in ffsb_deletefile() local
495 curfile = choose_file_writer(bf, rd); in ffsb_deletefile()
496 remove_file(bf, curfile); in ffsb_deletefile()
501 if (unlink(curfile->name) == -1) { in ffsb_deletefile()
502 printf("error deleting %s in deletefile\n", curfile->name); in ffsb_deletefile()
512 rw_unlock_write(&curfile->lock); in ffsb_deletefile()
520 struct ffsb_file *curfile = NULL; in ffsb_open_close() local
524 curfile = choose_file_reader(bf, rd); in ffsb_open_close()
525 fd = fhopenread(curfile->name, ft, fs); in ffsb_open_close()
527 unlock_file_reader(curfile); in ffsb_open_close()
534 struct ffsb_file *curfile = NULL; in ffsb_stat() local
537 curfile = choose_file_reader(bf, rd); in ffsb_stat()
538 fhstat(curfile->name, ft, fs); in ffsb_stat()
539 unlock_file_reader(curfile); in ffsb_stat()