Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jul 2003 17:17:29 -0700 (PDT)
From:      "Tim J. Robbins" <tjr@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/nfsclient nfs_vnops.c
Message-ID:  <200307290017.h6T0HThe054073@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
tjr         2003/07/28 17:17:29 PDT

  FreeBSD src repository

  Modified files:
    sys/nfsclient        nfs_vnops.c 
  Log:
  Fix a problem that occurs when truncating files on NFSv3 mounts: we need
  to set np->n_size back to the desired size again after calling
  nfs_meta_setsize(), since it could end up in nfs_loadattrcache() getting
  called, which would change n_size back to the value it had before the
  truncate request was issued. The result of this bug is that the size info
  cached in the nfsnode becomes incorrect, lseek(fd, ofs, SEEK_END) seeks
  past the end of the file, stat() returns the wrong size, etc.
  
  PR:             41792
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.208     +7 -1      src/sys/nfsclient/nfs_vnops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307290017.h6T0HThe054073>