Author: araujo (ports committer)
Date: Tue Oct  7 06:00:09 2014
New Revision: 272676
URL: https://svnweb.freebsd.org/changeset/base/272676

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.
  
  Phabric:      D905
  Reported by:  Kevin Buhr <b...@asaurus.net>
  Reviewed by:  rmacklem, delphij
  Approved by:  delphij
  Obtained from:        r272467
  Sponsored by: QNAP Systems Inc.

Modified:
  stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c

Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c        
Tue Oct  7 04:59:11 2014        (r272675)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c        
Tue Oct  7 06:00:09 2014        (r272676)
@@ -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.
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to