1. 23 9月, 2006 33 次提交
  2. 19 9月, 2006 3 次提交
  3. 09 9月, 2006 1 次提交
  4. 25 8月, 2006 3 次提交
    • T
      NFSv4: Add v4 exception handling for the ACL functions. · 16b4289c
      Trond Myklebust 提交于
      This is needed in order to handle any NFS4ERR_DELAY errors that might be
      returned by the server. It also ensures that we map the NFSv4 errors before
      they are returned to userland.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      (cherry picked from 71c12b3f0abc7501f6ed231a6d17bc9c05a238dc commit)
      16b4289c
    • D
      NFS: Check lengths more thoroughly in NFS4 readdir XDR decode · e8896495
      David Howells 提交于
      Check the bounds of length specifiers more thoroughly in the XDR decoding of
      NFS4 readdir reply data.
      
      Currently, if the server returns a bitmap or attr length that causes the
      current decode point pointer to wrap, this could go undetected (consider a
      small "negative" length on a 32-bit machine).
      
      Also add a check into the main XDR decode handler to make sure that the amount
      of data is a multiple of four bytes (as specified by RFC-1014).  This makes
      sure that we can do u32* pointer subtraction in the NFS client without risking
      an undefined result (the result is undefined if the pointers are not correctly
      aligned with respect to one another).
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      (cherry picked from 5861fddd64a7eaf7e8b1a9997455a24e7f688092 commit)
      e8896495
    • T
      NFS: Fix issue with EIO on NFS read · 79558f36
      Trond Myklebust 提交于
      The problem is that we may be caching writes that would extend the file and
      create a hole in the region that we are reading. In this case, we need to
      detect the eof from the server, ensure that we zero out the pages that
      are part of the hole and mark them as up to date.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      (cherry picked from 856b603b01b99146918c093969b6cb1b1b0f1c01 commit)
      79558f36