Lines Matching refs:retval
31 errcode_t retval; in ino_iter_extents() local
38 retval = ext2fs_extent_get(extents, op, &extent); in ino_iter_extents()
39 if (retval) in ino_iter_extents()
56 if (retval == EXT2_ET_EXTENT_NO_NEXT) in ino_iter_extents()
57 retval = 0; in ino_iter_extents()
58 if (retval) { in ino_iter_extents()
59 com_err(__func__, retval, ("getting extents of ino \"%u\""), in ino_iter_extents()
62 return retval; in ino_iter_extents()
68 errcode_t retval; in ino_iter_blocks() local
73 retval = ext2fs_read_inode(fs, ino, &inode); in ino_iter_blocks()
74 if (retval) in ino_iter_blocks()
75 return retval; in ino_iter_blocks()
81 retval = ext2fs_extent_open(fs, ino, &extents); in ino_iter_blocks()
82 if (retval == EXT2_ET_INODE_NOT_EXTENT) { in ino_iter_blocks()
83 retval = ext2fs_block_iterate3(fs, ino, BLOCK_FLAG_READ_ONLY, in ino_iter_blocks()
85 if (retval) { in ino_iter_blocks()
86 com_err(__func__, retval, _("listing blocks of ino \"%u\""), in ino_iter_blocks()
89 return retval; in ino_iter_blocks()
92 retval = ino_iter_extents(fs, ino, extents, pdata); in ino_iter_blocks()
95 return retval; in ino_iter_blocks()
114 errcode_t retval; in walk_ext_dir() local
129 retval = ext2fs_read_inode(pdata->fs, de->inode, &inode); in walk_ext_dir()
130 if (retval) { in walk_ext_dir()
131 com_err(__func__, retval, _("reading ino \"%u\""), de->inode); in walk_ext_dir()
135 retval = ino_iter_blocks(pdata->fs, de->inode, pdata); in walk_ext_dir()
136 if (retval) in walk_ext_dir()
137 return retval; in walk_ext_dir()
140 retval = 0; in walk_ext_dir()
144 retval = ext2fs_dir_iterate2(pdata->fs, de->inode, 0, NULL, in walk_ext_dir()
151 return retval; in walk_ext_dir()
158 errcode_t retval; in fsmap_iter_filsys() local
165 retval = ext2fs_dir_iterate2(fs, EXT2_ROOT_INO, 0, NULL, walk_ext_dir, &pdata); in fsmap_iter_filsys()
168 return retval; in fsmap_iter_filsys()