erofs-utils: lib: fix errors when building xattrs
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 9 Mar 2023 11:26:30 +0000 (19:26 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 9 Mar 2023 16:40:23 +0000 (00:40 +0800)
commita2563d1c3a53b1215769db6e23fc20e70ab6325e
tree0fede25b91ba0a624832c5bcfda80cf31d127791
parent53ee2c7a279080937aea649183567abcd26f9d2b
erofs-utils: lib: fix errors when building xattrs

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@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230309112630.74230-3-hsiangkao@linux.alibaba.com
lib/xattr.c