scoutfs: return -ENODATA from getxattr

The conversion to the multi-item xattrs accidentally returned -EIO when
an attribute wasn't found instead of -ENODATA.  That broke a huge number
of xfstests because ls can look up xattrs and return EIO.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2017-07-27 15:21:13 -07:00
committed by Zach Brown
parent 325eadca9f
commit 172cff5537

View File

@@ -192,7 +192,7 @@ ssize_t scoutfs_getxattr(struct dentry *dentry, const char *name, void *buffer,
ret = scoutfs_item_lookup(sb, key, val, lck->end);
if (ret < 0) {
if (ret == -ENOENT)
ret = -EIO;
ret = -ENODATA;
break;
}