Home
last modified time | relevance | path

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

/frameworks/native/cmds/installd/
Dutils.h121 int write_path_inode(const std::string& parent, const char* name, const char* inode_xattr);
122 std::string read_path_inode(const std::string& parent, const char* name, const char* inode_xattr);
123 void remove_path_xattr(const std::string& path, const char* inode_xattr);
Dutils.cpp678 int write_path_inode(const std::string& parent, const char* name, const char* inode_xattr) { in write_path_inode() argument
689 if (getxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw)) == sizeof(inode_raw)) { in write_path_inode()
700 …if (setxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw), 0) != 0 && errno != EOPNO… in write_path_inode()
701 PLOG(ERROR) << "Failed to write xattr " << inode_xattr << " at " << parent; in write_path_inode()
713 std::string read_path_inode(const std::string& parent, const char* name, const char* inode_xattr) { in read_path_inode() argument
719 if (getxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw)) == sizeof(inode_raw)) { in read_path_inode()
754 void remove_path_xattr(const std::string& path, const char* inode_xattr) { in remove_path_xattr() argument
755 if (removexattr(path.c_str(), inode_xattr) && errno != ENODATA) { in remove_path_xattr()
756 PLOG(ERROR) << "Failed to remove xattr " << inode_xattr << " at " << path; in remove_path_xattr()