[PATCH 3/3] erofs-utils: lib: fix errors when building xattrs
Gao Xiang
hsiangkao at linux.alibaba.com
Thu Mar 9 22:26:30 AEDT 2023
EOPNOTSUPP could be reported by llistxattr() and mkfs.erofs could
fail out due to the following error:
<E> erofs: llistxattr to get the size of names for xxxxx failed
<E> erofs: Could not format the device : [Error 95] Operation not supported
Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
---
lib/xattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/xattr.c b/lib/xattr.c
index 024ecbe..dbe0519 100644
--- a/lib/xattr.c
+++ b/lib/xattr.c
@@ -315,7 +315,7 @@ static int read_xattrs_from_file(const char *path, mode_t mode,
unsigned int keylen;
struct xattr_item *item;
- if (kllen < 0 && errno != ENODATA) {
+ if (kllen < 0 && errno != ENODATA && errno != EOPNOTSUPP) {
erofs_err("llistxattr to get the size of names for %s failed",
path);
return -errno;
--
2.24.4
More information about the Linux-erofs
mailing list