Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys/sys In vattr_init_mask() check for v...
details: https://anonhg.NetBSD.org/src/rev/2b920a6fb63d
branches: trunk
changeset: 1027717:2b920a6fb63d
user: simonb <simonb%NetBSD.org@localhost>
date: Fri Dec 17 08:07:12 2021 +0000
description:
In vattr_init_mask() check for va_flags and if set add to the mask of
to the things that setattr is interested in.
Fixes chflags(2) on ZFS.
Thanks riastradh@ for fix.
diffstat:
external/cddl/osnet/sys/sys/vnode.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r f53398461301 -r 2b920a6fb63d external/cddl/osnet/sys/sys/vnode.h
--- a/external/cddl/osnet/sys/sys/vnode.h Fri Dec 17 06:28:20 2021 +0000
+++ b/external/cddl/osnet/sys/sys/vnode.h Fri Dec 17 08:07:12 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnode.h,v 1.20 2021/07/18 07:22:22 kardel Exp $ */
+/* $NetBSD: vnode.h,v 1.21 2021/12/17 08:07:12 simonb Exp $ */
/*
* CDDL HEADER START
@@ -227,6 +227,8 @@
vap->va_mask |= AT_MTIME;
if (vap->va_mode != (mode_t)VNOVAL)
vap->va_mask |= AT_MODE;
+ if (vap->va_flags != VNOVAL)
+ vap->va_mask |= AT_XVATTR;
}
#define FCREAT O_CREAT
Home |
Main Index |
Thread Index |
Old Index