Home
last modified time | relevance | path

Searched refs:inode_xattr (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/cmds/installd/
Dutils.h155 int write_path_inode(const std::string& parent, const char* name, const char* inode_xattr);
156 std::string read_path_inode(const std::string& parent, const char* name, const char* inode_xattr);
157 void remove_path_xattr(const std::string& path, const char* inode_xattr);
Dutils.cpp949 int write_path_inode(const std::string& parent, const char* name, const char* inode_xattr) { in write_path_inode() argument
960 if (getxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw)) == sizeof(inode_raw)) { in write_path_inode()
971 …if (setxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw), 0) != 0 && errno != EOPNO… in write_path_inode()
972 PLOG(ERROR) << "Failed to write xattr " << inode_xattr << " at " << parent; in write_path_inode()
984 std::string read_path_inode(const std::string& parent, const char* name, const char* inode_xattr) { in read_path_inode() argument
990 if (getxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw)) == sizeof(inode_raw)) { in read_path_inode()
1025 void remove_path_xattr(const std::string& path, const char* inode_xattr) { in remove_path_xattr() argument
1026 if (removexattr(path.c_str(), inode_xattr) && errno != ENODATA) { in remove_path_xattr()
1027 PLOG(ERROR) << "Failed to remove xattr " << inode_xattr << " at " << path; in remove_path_xattr()