DO NOT MERGE. Ignore setxattr() failures on tmpfs.
Bug: 30210614
Change-Id: Ic9dfb2439b4b1056e1a58552be2e84f4e524321e
diff --git a/cmds/installd/utils.cpp b/cmds/installd/utils.cpp
index ba0ce0a..674f760 100644
--- a/cmds/installd/utils.cpp
+++ b/cmds/installd/utils.cpp
@@ -823,7 +823,7 @@
}
inode_raw = inode;
- if (setxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw), 0) != 0) {
+ if (setxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw), 0) != 0 && errno != EOPNOTSUPP) {
PLOG(ERROR) << "Failed to write xattr " << inode_xattr << " at " << parent;
return -1;
} else {