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 <[email protected]> --- 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
