From 3b421ab6144c661893e555d70b0c75608eb6a090 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 24 Oct 2017 08:07:30 -0700 Subject: mkfs.ubifs: ignore EOPNOTSUPP when listing extended attributes Systems that don't support extended attributes should still be able to create ubifs images. Signed-off-by: Pavel Roskin Signed-off-by: David Oberhollenzer --- ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ubifs-utils') diff --git a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c index d432dfe..c916f48 100644 --- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c +++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c @@ -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); -- cgit v1.2.3