Lines Matching refs:retval
35 errcode_t retval, close_retval; in ino_add_xattr() local
38 retval = ext2fs_xattrs_open(fs, ino, &xhandle); in ino_add_xattr()
39 if (retval) { in ino_add_xattr()
40 com_err(__func__, retval, _("while opening inode %u"), ino); in ino_add_xattr()
41 return retval; in ino_add_xattr()
43 retval = ext2fs_xattrs_read(xhandle); in ino_add_xattr()
44 if (retval) { in ino_add_xattr()
45 com_err(__func__, retval, in ino_add_xattr()
49 retval = ext2fs_xattr_set(xhandle, name, value, value_len); in ino_add_xattr()
50 if (retval) { in ino_add_xattr()
51 com_err(__func__, retval, in ino_add_xattr()
60 return retval ? retval : close_retval; in ino_add_xattr()
62 return retval; in ino_add_xattr()
68 errcode_t retval; in set_selinux_xattr() local
75 retval = ext2fs_read_inode(fs, ino, &inode); in set_selinux_xattr()
76 if (retval) { in set_selinux_xattr()
77 com_err(__func__, retval, in set_selinux_xattr()
79 return retval; in set_selinux_xattr()
82 retval = selabel_lookup(params->sehnd, &secontext, params->filename, in set_selinux_xattr()
84 if (retval < 0) { in set_selinux_xattr()
91 retval = ino_add_xattr(fs, ino, "security." XATTR_SELINUX_SUFFIX, in set_selinux_xattr()
95 return retval; in set_selinux_xattr()
121 errcode_t retval; in set_perms_and_caps() local
127 retval = ext2fs_read_inode(fs, ino, &inode); in set_perms_and_caps()
128 if (retval) { in set_perms_and_caps()
129 com_err(__func__, retval, _("while reading inode %u"), ino); in set_perms_and_caps()
130 return retval; in set_perms_and_caps()
150 retval = ext2fs_write_inode(fs, ino, &inode); in set_perms_and_caps()
151 if (retval) { in set_perms_and_caps()
152 com_err(__func__, retval, in set_perms_and_caps()
154 return retval; in set_perms_and_caps()
172 errcode_t retval; in set_timestamp() local
177 retval = ext2fs_read_inode(fs, ino, &inode); in set_timestamp()
178 if (retval) { in set_timestamp()
179 com_err(__func__, retval, in set_timestamp()
181 return retval; in set_timestamp()
190 retval = lstat(src_filename, &stat); in set_timestamp()
191 if (retval < 0) { in set_timestamp()
201 retval = ext2fs_write_inode(fs, ino, &inode); in set_timestamp()
202 if (retval) { in set_timestamp()
203 com_err(__func__, retval, in set_timestamp()
210 return retval; in set_timestamp()
225 errcode_t retval; in androidify_inode() local
227 retval = set_timestamp(fs, ino, params); in androidify_inode()
228 if (retval) in androidify_inode()
229 return retval; in androidify_inode()
231 retval = set_selinux_xattr(fs, ino, params); in androidify_inode()
232 if (retval) in androidify_inode()
233 return retval; in androidify_inode()
246 errcode_t retval; in walk_dir() local
261 retval = set_selinux_xattr(params->fs, de->inode, params); in walk_dir()
262 if (retval) in walk_dir()
265 retval = androidify_inode(params->fs, de->inode, params); in walk_dir()
266 if (retval) in walk_dir()
272 retval = ext2fs_dir_iterate2(params->fs, de->inode, 0, NULL, in walk_dir()
274 if (retval) in walk_dir()
283 params->error |= retval; in walk_dir()
284 return retval; in walk_dir()
296 errcode_t retval; in __android_configure_fs() local
316 retval = androidify_inode(fs, EXT2_ROOT_INO, ¶ms); in __android_configure_fs()
317 if (retval) in __android_configure_fs()
318 return retval; in __android_configure_fs()
320 retval = ext2fs_dir_iterate2(fs, EXT2_ROOT_INO, 0, NULL, walk_dir, in __android_configure_fs()
322 if (retval) in __android_configure_fs()
323 return retval; in __android_configure_fs()
335 errcode_t retval; in android_configure_fs() local
363 retval = load_canned_fs_config(fs_config_file); in android_configure_fs()
365 retval = LoadDacConfig(fs_config_file); in android_configure_fs()
367 if (retval < 0) { in android_configure_fs()
368 com_err(__func__, retval, in android_configure_fs()
371 return retval; in android_configure_fs()