Lines Matching refs:retval
31 errcode_t retval, close_retval; in ino_add_xattr() local
34 retval = ext2fs_xattrs_open(fs, ino, &xhandle); in ino_add_xattr()
35 if (retval) { in ino_add_xattr()
36 com_err(__func__, retval, _("while opening inode %u"), ino); in ino_add_xattr()
37 return retval; in ino_add_xattr()
39 retval = ext2fs_xattrs_read(xhandle); in ino_add_xattr()
40 if (retval) { in ino_add_xattr()
41 com_err(__func__, retval, in ino_add_xattr()
45 retval = ext2fs_xattr_set(xhandle, name, value, value_len); in ino_add_xattr()
46 if (retval) { in ino_add_xattr()
47 com_err(__func__, retval, in ino_add_xattr()
51 retval = ext2fs_xattrs_write(xhandle); in ino_add_xattr()
52 if (retval) { in ino_add_xattr()
53 com_err(__func__, retval, in ino_add_xattr()
62 return retval ? retval : close_retval; in ino_add_xattr()
64 return retval; in ino_add_xattr()
70 errcode_t retval; in set_selinux_xattr() local
77 retval = ext2fs_read_inode(fs, ino, &inode); in set_selinux_xattr()
78 if (retval) { in set_selinux_xattr()
79 com_err(__func__, retval, in set_selinux_xattr()
81 return retval; in set_selinux_xattr()
84 retval = selabel_lookup(params->sehnd, &secontext, params->filename, in set_selinux_xattr()
86 if (retval < 0) { in set_selinux_xattr()
87 com_err(__func__, retval, in set_selinux_xattr()
92 retval = ino_add_xattr(fs, ino, "security." XATTR_SELINUX_SUFFIX, in set_selinux_xattr()
96 return retval; in set_selinux_xattr()
102 errcode_t retval; in set_perms_and_caps() local
108 retval = ext2fs_read_inode(fs, ino, &inode); in set_perms_and_caps()
109 if (retval) { in set_perms_and_caps()
110 com_err(__func__, retval, _("while reading inode %u"), ino); in set_perms_and_caps()
111 return retval; in set_perms_and_caps()
122 retval = ext2fs_write_inode(fs, ino, &inode); in set_perms_and_caps()
123 if (retval) { in set_perms_and_caps()
124 com_err(__func__, retval, in set_perms_and_caps()
126 return retval; in set_perms_and_caps()
144 errcode_t retval; in set_timestamp() local
149 retval = ext2fs_read_inode(fs, ino, &inode); in set_timestamp()
150 if (retval) { in set_timestamp()
151 com_err(__func__, retval, in set_timestamp()
153 return retval; in set_timestamp()
162 retval = lstat(src_filename, &stat); in set_timestamp()
163 if (retval < 0) { in set_timestamp()
164 com_err(__func__, retval, in set_timestamp()
173 retval = ext2fs_write_inode(fs, ino, &inode); in set_timestamp()
174 if (retval) { in set_timestamp()
175 com_err(__func__, retval, in set_timestamp()
182 return retval; in set_timestamp()
197 errcode_t retval; in androidify_inode() local
199 retval = set_timestamp(fs, ino, params); in androidify_inode()
200 if (retval) in androidify_inode()
201 return retval; in androidify_inode()
203 retval = set_selinux_xattr(fs, ino, params); in androidify_inode()
204 if (retval) in androidify_inode()
205 return retval; in androidify_inode()
218 errcode_t retval; in walk_dir() local
231 retval = set_selinux_xattr(params->fs, de->inode, params); in walk_dir()
232 if (retval) in walk_dir()
235 retval = androidify_inode(params->fs, de->inode, params); in walk_dir()
236 if (retval) in walk_dir()
251 return retval; in walk_dir()
261 errcode_t retval; in __android_configure_fs() local
278 retval = set_selinux_xattr(fs, EXT2_ROOT_INO, ¶ms); in __android_configure_fs()
279 if (retval) in __android_configure_fs()
280 return retval; in __android_configure_fs()
281 retval = set_timestamp(fs, EXT2_ROOT_INO, ¶ms); in __android_configure_fs()
282 if (retval) in __android_configure_fs()
283 return retval; in __android_configure_fs()
295 errcode_t retval; in android_configure_fs() local
321 retval = load_canned_fs_config(fs_config_file); in android_configure_fs()
322 if (retval < 0) { in android_configure_fs()
323 com_err(__func__, retval, in android_configure_fs()
326 return retval; in android_configure_fs()