Module Name: src
Committed By: bouyer
Date: Fri Mar 24 12:22:52 UTC 2023
Modified Files:
src/sys/kern: vfs_xattr.c
Log Message:
extattr_set_vp(): properly handle XATTR_REPLACE flags, FFSv2ea will return
ENOATTR, not ENODATA if the attribute is missing.
Makes glusterfs 10 run on a FFSv2ea file system.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/kern/vfs_xattr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/vfs_xattr.c
diff -u src/sys/kern/vfs_xattr.c:1.38 src/sys/kern/vfs_xattr.c:1.39
--- src/sys/kern/vfs_xattr.c:1.38 Tue Oct 25 23:22:36 2022
+++ src/sys/kern/vfs_xattr.c Fri Mar 24 12:22:52 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_xattr.c,v 1.38 2022/10/25 23:22:36 riastradh Exp $ */
+/* $NetBSD: vfs_xattr.c,v 1.39 2023/03/24 12:22:52 bouyer Exp $ */
/*-
* Copyright (c) 2005, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_xattr.c,v 1.38 2022/10/25 23:22:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_xattr.c,v 1.39 2023/03/24 12:22:52 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -231,6 +231,7 @@ extattr_set_vp(struct vnode *vp, int att
switch (error) {
case ENODATA:
+ case ENOATTR:
if (flag & XATTR_REPLACE)
goto done;
break;