]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Detect loops in a readdir due to bad cookies
authorBryan Schumaker <bjschuma@netapp.com>
Wed, 23 Mar 2011 19:04:31 +0000 (15:04 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 23 Mar 2011 19:14:27 +0000 (15:14 -0400)
commitcddf2f06cc8590a89d8ba5cc7a0e525715ce2773
tree35441fd695c4f5215ab0061d8df26b4cfd9a44f5
parent618bd7ea72223e42ad25145af595f34cd9d01c27
NFS: Detect loops in a readdir due to bad cookies

Some filesystems (such as ext4) can return the same cookie value for
multiple files.  If we try to start a readdir with one of these cookies,
the server will return the first file found with a cookie of the same
value.  This can cause the client to enter an infinite loop.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
include/linux/nfs_fs.h