Searched refs:inode_xattr (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/cmds/installd/ |
D | utils.h | 135 int write_path_inode(const std::string& parent, const char* name, const char* inode_xattr); 136 std::string read_path_inode(const std::string& parent, const char* name, const char* inode_xattr); 137 void remove_path_xattr(const std::string& path, const char* inode_xattr);
|
D | utils.cpp | 744 int write_path_inode(const std::string& parent, const char* name, const char* inode_xattr) { in write_path_inode() argument 755 if (getxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw)) == sizeof(inode_raw)) { in write_path_inode() 766 …if (setxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw), 0) != 0 && errno != EOPNO… in write_path_inode() 767 PLOG(ERROR) << "Failed to write xattr " << inode_xattr << " at " << parent; in write_path_inode() 779 std::string read_path_inode(const std::string& parent, const char* name, const char* inode_xattr) { in read_path_inode() argument 785 if (getxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw)) == sizeof(inode_raw)) { in read_path_inode() 820 void remove_path_xattr(const std::string& path, const char* inode_xattr) { in remove_path_xattr() argument 821 if (removexattr(path.c_str(), inode_xattr) && errno != ENODATA) { in remove_path_xattr() 822 PLOG(ERROR) << "Failed to remove xattr " << inode_xattr << " at " << path; in remove_path_xattr()
|