Skip to contentSkip to conversation

mkfs.ubifs: ignore EOPNOTSUPP when listing extended attributes

PATCH Applied Pavel Roskin 2 participants 2 messages Oct 24, 2017 – Oct 30, 2017 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkfs.ubifs: ignore EOPNOTSUPP when listing extended attributes

Systems that don't support extended attributes should still be able to create ubifs images.

---
 ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c +1 -1
index d432dfe..c916f48 100644
@@ -1128,7 +1128,7 @@ static int inode_add_xattr(struct ubifs_ino_node *host_ino,
 
 	len = llistxattr(path_name, NULL, 0);
 	if (len < 0) {
-		if (errno == ENOENT)
+		if (errno == ENOENT || errno == EOPNOTSUPP)
 			return 0;
 
 		sys_err_msg("llistxattr failed on %s", path_name);
Signature · 1 line
2.14.2