svn commit: r273122 - releng/10.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Marcelo Araujo
araujo at FreeBSD.org
Wed Oct 15 06:31:09 UTC 2014
Author: araujo (ports committer)
Date: Wed Oct 15 06:31:08 2014
New Revision: 273122
URL: https://svnweb.freebsd.org/changeset/base/273122
Log:
Make external NFS clients know when files have their attributes changed and
avoid cache the file's state indefinitely. The va_filerev is what is sent
to the client as the "change" attribute, the client is periodically fetching
the attributes and without this option the attribute remains as some garbage
value.
Reported by: Kevin Buhr <buhr at asaurus.net>
Reviewed by: delphij
Approved by: re (gjb), delphij
Obtained from: r272467
Modified:
releng/10.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
Modified: releng/10.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- releng/10.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Wed Oct 15 06:10:33 2014 (r273121)
+++ releng/10.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Wed Oct 15 06:31:08 2014 (r273122)
@@ -2827,6 +2827,7 @@ zfs_getattr(vnode_t *vp, vattr_t *vap, i
#endif
vap->va_seq = zp->z_seq;
vap->va_flags = 0; /* FreeBSD: Reset chflags(2) flags. */
+ vap->va_filerev = zp->z_seq;
/*
* Add in any requested optional attributes and the create time.
More information about the svn-src-releng
mailing list