32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From 65983559eeb21659bda84fcc88c4cb59b49199cd Mon Sep 17 00:00:00 2001
|
|
From: Your Name <you@example.com>
|
|
Date: Sun, 10 Feb 2019 10:33:00 +0100
|
|
Subject: [PATCH] Turn ENOATTR errors into ENODATA errrors - buildfix
|
|
|
|
---
|
|
src/zfs-fuse/zfs_operations.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/zfs-fuse/zfs_operations.c b/src/zfs-fuse/zfs_operations.c
|
|
index 3c5562a..c9204e5 100644
|
|
--- a/src/zfs-fuse/zfs_operations.c
|
|
+++ b/src/zfs-fuse/zfs_operations.c
|
|
@@ -516,7 +516,7 @@ static void zfsfuse_getxattr(fuse_req_t req, fuse_ino_t ino, const char *name,
|
|
vnode_t *new_vp = NULL;
|
|
error = VOP_LOOKUP(vp, (char *) name, &new_vp, NULL, 0, NULL, &cred, NULL, NULL, NULL);
|
|
if (error) {
|
|
- error = ENOATTR;
|
|
+ error = ENODATA;
|
|
goto out;
|
|
}
|
|
VN_RELE(vp);
|
|
@@ -588,7 +588,7 @@ static void zfsfuse_removexattr(fuse_req_t req, fuse_ino_t ino, const char *name
|
|
VN_RELE(dvp);
|
|
ZFS_EXIT(zfsvfs);
|
|
if (error == ENOENT)
|
|
- error = ENOATTR;
|
|
+ error = ENODATA;
|
|
fuse_reply_err(req,error);
|
|
}
|
|
|