• Home
  • Raw
  • Download

Lines Matching refs:retval

48 	errcode_t	retval;  in ext2fs_file_open2()  local
58 retval = ext2fs_get_mem(sizeof(struct ext2_file), &file); in ext2fs_file_open2()
59 if (retval) in ext2fs_file_open2()
60 return retval; in ext2fs_file_open2()
71 retval = ext2fs_read_inode(fs, ino, &file->inode); in ext2fs_file_open2()
72 if (retval) in ext2fs_file_open2()
76 retval = ext2fs_get_array(3, fs->blocksize, &file->buf); in ext2fs_file_open2()
77 if (retval) in ext2fs_file_open2()
87 return retval; in ext2fs_file_open2()
130 errcode_t retval; in ext2fs_file_flush() local
144 retval = ext2fs_bmap2(fs, file->ino, &file->inode, BMAP_BUFFER, in ext2fs_file_flush()
146 if (retval) in ext2fs_file_flush()
147 return retval; in ext2fs_file_flush()
149 retval = ext2fs_bmap2(fs, file->ino, &file->inode, in ext2fs_file_flush()
153 if (retval) in ext2fs_file_flush()
154 return retval; in ext2fs_file_flush()
163 retval = ext2fs_bmap2(fs, file->ino, &file->inode, in ext2fs_file_flush()
166 if (retval) in ext2fs_file_flush()
167 return retval; in ext2fs_file_flush()
170 retval = io_channel_write_blk64(fs->io, file->physblock, 1, file->buf); in ext2fs_file_flush()
171 if (retval) in ext2fs_file_flush()
172 return retval; in ext2fs_file_flush()
176 return retval; in ext2fs_file_flush()
186 errcode_t retval; in sync_buffer_position() local
190 retval = ext2fs_file_flush(file); in sync_buffer_position()
191 if (retval) in sync_buffer_position()
192 return retval; in sync_buffer_position()
211 errcode_t retval; in load_buffer() local
215 retval = ext2fs_bmap2(fs, file->ino, &file->inode, in load_buffer()
218 if (retval) in load_buffer()
219 return retval; in load_buffer()
223 retval = io_channel_read_blk64(fs->io, in load_buffer()
226 if (retval) in load_buffer()
227 return retval; in load_buffer()
239 errcode_t retval; in ext2fs_file_close() local
243 retval = ext2fs_file_flush(file); in ext2fs_file_close()
249 return retval; in ext2fs_file_close()
258 errcode_t retval; in ext2fs_file_read_inline_data() local
263 retval = ext2fs_inline_data_get(fs, file->ino, &file->inode, in ext2fs_file_read_inline_data()
265 if (retval) in ext2fs_file_read_inline_data()
266 return retval; in ext2fs_file_read_inline_data()
281 return retval; in ext2fs_file_read_inline_data()
289 errcode_t retval = 0; in ext2fs_file_read() local
302 retval = sync_buffer_position(file); in ext2fs_file_read()
303 if (retval) in ext2fs_file_read()
305 retval = load_buffer(file, 0); in ext2fs_file_read()
306 if (retval) in ext2fs_file_read()
327 return retval; in ext2fs_file_read()
336 errcode_t retval; in ext2fs_file_write_inline_data() local
341 retval = ext2fs_inline_data_get(fs, file->ino, &file->inode, in ext2fs_file_write_inline_data()
343 if (retval) in ext2fs_file_write_inline_data()
344 return retval; in ext2fs_file_write_inline_data()
350 retval = ext2fs_inline_data_set(fs, file->ino, &file->inode, in ext2fs_file_write_inline_data()
352 if (retval == EXT2_ET_INLINE_DATA_NO_SPACE) in ext2fs_file_write_inline_data()
354 if (retval) in ext2fs_file_write_inline_data()
355 return retval; in ext2fs_file_write_inline_data()
364 if (retval == 0) in ext2fs_file_write_inline_data()
365 retval = rc; in ext2fs_file_write_inline_data()
374 retval = ext2fs_inline_data_expand(fs, file->ino); in ext2fs_file_write_inline_data()
375 if (retval) in ext2fs_file_write_inline_data()
376 return retval; in ext2fs_file_write_inline_data()
384 retval = ext2fs_read_inode(fs, file->ino, &file->inode); in ext2fs_file_write_inline_data()
385 if (retval) in ext2fs_file_write_inline_data()
386 return retval; in ext2fs_file_write_inline_data()
395 errcode_t retval = 0; in ext2fs_file_write() local
409 retval = ext2fs_file_write_inline_data(file, buf, nbytes, in ext2fs_file_write()
411 if (retval != EXT2_ET_INLINE_DATA_NO_SPACE) in ext2fs_file_write()
412 return retval; in ext2fs_file_write()
414 retval = 0; in ext2fs_file_write()
418 retval = sync_buffer_position(file); in ext2fs_file_write()
419 if (retval) in ext2fs_file_write()
431 retval = load_buffer(file, (c == fs->blocksize)); in ext2fs_file_write()
432 if (retval) in ext2fs_file_write()
447 retval = EXT2_ET_NO_MEMORY; in ext2fs_file_write()
465 retval = ext2fs_bmap2(fs, file->ino, &file->inode, in ext2fs_file_write()
470 if (retval) { in ext2fs_file_write()
482 retval = EXT2_ET_NO_MEMORY; in ext2fs_file_write()
506 if (retval == 0) in ext2fs_file_write()
507 retval = rc; in ext2fs_file_write()
512 return retval; in ext2fs_file_write()
539 errcode_t retval; in ext2fs_file_lseek() local
542 retval = ext2fs_file_llseek(file, loffset, whence, &ret_loffset); in ext2fs_file_lseek()
545 return retval; in ext2fs_file_lseek()
583 errcode_t retval; in ext2fs_file_zero_past_offset() local
588 retval = sync_buffer_position(file); in ext2fs_file_zero_past_offset()
589 if (retval) in ext2fs_file_zero_past_offset()
590 return retval; in ext2fs_file_zero_past_offset()
593 retval = ext2fs_bmap2(fs, file->ino, NULL, NULL, 0, in ext2fs_file_zero_past_offset()
595 if (retval) in ext2fs_file_zero_past_offset()
596 return retval; in ext2fs_file_zero_past_offset()
601 retval = ext2fs_get_mem(fs->blocksize, &b); in ext2fs_file_zero_past_offset()
602 if (retval) in ext2fs_file_zero_past_offset()
603 return retval; in ext2fs_file_zero_past_offset()
606 retval = io_channel_read_blk64(fs->io, blk, 1, b); in ext2fs_file_zero_past_offset()
607 if (retval) in ext2fs_file_zero_past_offset()
612 retval = io_channel_write_blk64(fs->io, blk, 1, b); in ext2fs_file_zero_past_offset()
613 if (retval) in ext2fs_file_zero_past_offset()
618 return retval; in ext2fs_file_zero_past_offset()
628 errcode_t retval; in ext2fs_file_set_size2() local
642 retval = ext2fs_inode_size_set(file->fs, &file->inode, size); in ext2fs_file_set_size2()
643 if (retval) in ext2fs_file_set_size2()
644 return retval; in ext2fs_file_set_size2()
647 retval = ext2fs_write_inode(file->fs, file->ino, &file->inode); in ext2fs_file_set_size2()
648 if (retval) in ext2fs_file_set_size2()
649 return retval; in ext2fs_file_set_size2()
652 retval = ext2fs_file_zero_past_offset(file, size); in ext2fs_file_set_size2()
653 if (retval) in ext2fs_file_set_size2()
654 return retval; in ext2fs_file_set_size2()