Lines Matching refs:e2_file
412 static errcode_t copy_file_chunk(ext2_filsys fs, int fd, ext2_file_t e2_file, in copy_file_chunk() argument
442 err = ext2fs_file_llseek(e2_file, off + bpos, in copy_file_chunk()
447 err = ext2fs_file_write(e2_file, ptr, blen, in copy_file_chunk()
466 ext2_file_t e2_file, char *buf, char *zerobuf) in try_lseek_copy() argument
487 err = copy_file_chunk(fs, fd, e2_file, data_blk, hole_blk, buf, in try_lseek_copy()
500 static errcode_t try_fiemap_copy(ext2_filsys fs, int fd, ext2_file_t e2_file, in try_fiemap_copy() argument
538 err = copy_file_chunk(fs, fd, e2_file, ext->fe_logical, in try_fiemap_copy()
563 ext2_file_t e2_file; in copy_file() local
567 err = ext2fs_file_open(fs, ino, EXT2_FILE_WRITE, &e2_file); in copy_file()
580 err = try_lseek_copy(fs, fd, statbuf, e2_file, buf, zerobuf); in copy_file()
586 err = try_fiemap_copy(fs, fd, e2_file, buf, zerobuf); in copy_file()
591 err = copy_file_chunk(fs, fd, e2_file, 0, statbuf->st_size, buf, in copy_file()
596 close_err = ext2fs_file_close(e2_file); in copy_file()