• Home
  • Raw
  • Download

Lines Matching refs:ino

32 static errcode_t ino_add_xattr(ext2_filsys fs, ext2_ino_t ino, const char *name,  in ino_add_xattr()  argument
38 retval = ext2fs_xattrs_open(fs, ino, &xhandle); in ino_add_xattr()
40 com_err(__func__, retval, _("while opening inode %u"), ino); in ino_add_xattr()
46 _("while reading xattrs of inode %u"), ino); in ino_add_xattr()
52 _("while setting xattrs of inode %u"), ino); in ino_add_xattr()
59 _("while closing xattrs of inode %u"), ino); in ino_add_xattr()
65 static errcode_t set_selinux_xattr(ext2_filsys fs, ext2_ino_t ino, in set_selinux_xattr() argument
75 retval = ext2fs_read_inode(fs, ino, &inode); in set_selinux_xattr()
78 _("while reading inode %u"), ino); in set_selinux_xattr()
91 retval = ino_add_xattr(fs, ino, "security." XATTR_SELINUX_SUFFIX, in set_selinux_xattr()
118 static errcode_t set_perms_and_caps(ext2_filsys fs, ext2_ino_t ino, in set_perms_and_caps() argument
127 retval = ext2fs_read_inode(fs, ino, &inode); in set_perms_and_caps()
129 com_err(__func__, retval, _("while reading inode %u"), ino); in set_perms_and_caps()
150 retval = ext2fs_write_inode(fs, ino, &inode); in set_perms_and_caps()
153 _("while writing inode %u"), ino); in set_perms_and_caps()
165 return ino_add_xattr(fs, ino, "security." XATTR_CAPS_SUFFIX, in set_perms_and_caps()
169 static errcode_t set_timestamp(ext2_filsys fs, ext2_ino_t ino, in set_timestamp() argument
177 retval = ext2fs_read_inode(fs, ino, &inode); in set_timestamp()
180 _("while reading inode %u"), ino); in set_timestamp()
201 retval = ext2fs_write_inode(fs, ino, &inode); in set_timestamp()
204 _("while writing inode %u"), ino); in set_timestamp()
213 static int is_dir(ext2_filsys fs, ext2_ino_t ino) in is_dir() argument
217 if (ext2fs_read_inode(fs, ino, &inode)) in is_dir()
222 static errcode_t androidify_inode(ext2_filsys fs, ext2_ino_t ino, in androidify_inode() argument
227 retval = set_timestamp(fs, ino, params); in androidify_inode()
231 retval = set_selinux_xattr(fs, ino, params); in androidify_inode()
235 return set_perms_and_caps(fs, ino, params); in androidify_inode()