• Home
  • Raw
  • Download

Lines Matching refs:retval

48 	errcode_t retval = 0;  in ext2fs_mmp_read()  local
75 retval = EXT2_ET_MMP_OPEN_DIRECT; in ext2fs_mmp_read()
83 retval = ext2fs_get_memalign(fs->blocksize, align, in ext2fs_mmp_read()
85 if (retval) in ext2fs_mmp_read()
86 return retval; in ext2fs_mmp_read()
92 retval = EXT2_ET_LLSEEK_FAILED; in ext2fs_mmp_read()
97 retval = EXT2_ET_SHORT_READ; in ext2fs_mmp_read()
105 retval = EXT2_ET_MMP_CSUM_INVALID; in ext2fs_mmp_read()
115 retval = EXT2_ET_MMP_MAGIC_INVALID; in ext2fs_mmp_read()
120 return retval; in ext2fs_mmp_read()
131 errcode_t retval = 0; in ext2fs_mmp_write() local
145 retval = ext2fs_mmp_csum_set(fs, mmp_s); in ext2fs_mmp_write()
146 if (retval) in ext2fs_mmp_write()
147 return retval; in ext2fs_mmp_write()
151 retval = io_channel_write_blk64(fs->io, mmp_blk, -(int)sizeof(struct mmp_struct), buf); in ext2fs_mmp_write()
159 return retval; in ext2fs_mmp_write()
200 errcode_t retval = 0; in ext2fs_mmp_reset() local
203 retval = ext2fs_get_mem(fs->blocksize, &fs->mmp_buf); in ext2fs_mmp_reset()
204 if (retval) in ext2fs_mmp_reset()
226 retval = ext2fs_mmp_write(fs, fs->super->s_mmp_block, fs->mmp_buf); in ext2fs_mmp_reset()
228 return retval; in ext2fs_mmp_reset()
240 errcode_t retval = 0; in ext2fs_mmp_clear() local
245 retval = ext2fs_mmp_reset(fs); in ext2fs_mmp_clear()
247 return retval; in ext2fs_mmp_clear()
258 errcode_t retval; in ext2fs_mmp_init() local
267 retval = ext2fs_get_mem(fs->blocksize, &fs->mmp_buf); in ext2fs_mmp_init()
268 if (retval) in ext2fs_mmp_init()
272 retval = ext2fs_alloc_block2(fs, 0, fs->mmp_buf, &mmp_block); in ext2fs_mmp_init()
273 if (retval) in ext2fs_mmp_init()
278 retval = ext2fs_mmp_reset(fs); in ext2fs_mmp_init()
279 if (retval) in ext2fs_mmp_init()
283 return retval; in ext2fs_mmp_init()
302 errcode_t retval = 0; in ext2fs_mmp_start() local
305 retval = ext2fs_get_mem(fs->blocksize, &fs->mmp_buf); in ext2fs_mmp_start()
306 if (retval) in ext2fs_mmp_start()
310 retval = ext2fs_mmp_read(fs, fs->super->s_mmp_block, fs->mmp_buf); in ext2fs_mmp_start()
311 if (retval) in ext2fs_mmp_start()
324 retval = EXT2_ET_MMP_FSCK_ON; in ext2fs_mmp_start()
329 retval = EXT2_ET_MMP_UNKNOWN_SEQ; in ext2fs_mmp_start()
342 retval = ext2fs_mmp_read(fs, fs->super->s_mmp_block, fs->mmp_buf); in ext2fs_mmp_start()
343 if (retval) in ext2fs_mmp_start()
347 retval = EXT2_ET_MMP_FAILED; in ext2fs_mmp_start()
364 retval = ext2fs_mmp_write(fs, fs->super->s_mmp_block, fs->mmp_buf); in ext2fs_mmp_start()
365 if (retval) in ext2fs_mmp_start()
370 retval = ext2fs_mmp_read(fs, fs->super->s_mmp_block, fs->mmp_buf); in ext2fs_mmp_start()
371 if (retval) in ext2fs_mmp_start()
375 retval = EXT2_ET_MMP_FAILED; in ext2fs_mmp_start()
380 retval = ext2fs_mmp_write(fs, fs->super->s_mmp_block, fs->mmp_buf); in ext2fs_mmp_start()
381 if (retval) in ext2fs_mmp_start()
387 return retval; in ext2fs_mmp_start()
403 errcode_t retval = 0; in ext2fs_mmp_stop() local
410 retval = ext2fs_mmp_read(fs, fs->super->s_mmp_block, fs->mmp_buf); in ext2fs_mmp_stop()
411 if (retval) in ext2fs_mmp_stop()
418 retval = EXT2_ET_MMP_CHANGE_ABORT; in ext2fs_mmp_stop()
423 retval = ext2fs_mmp_write(fs, fs->super->s_mmp_block, fs->mmp_cmp); in ext2fs_mmp_stop()
431 return retval; in ext2fs_mmp_stop()
451 errcode_t retval = 0; in ext2fs_mmp_update2() local
462 retval = ext2fs_mmp_read(fs, fs->super->s_mmp_block, NULL); in ext2fs_mmp_update2()
463 if (retval) in ext2fs_mmp_update2()
474 retval = ext2fs_mmp_write(fs, fs->super->s_mmp_block, fs->mmp_buf); in ext2fs_mmp_update2()
477 return retval; in ext2fs_mmp_update2()