[PATCH] NFS: Hide NFS server-generated readdir cookies from userland
commit00a926422765064cb28e218d4837411c88bf6a3e
authorOlivier Galibert <galibert@pobox.com>
Wed, 22 Jun 2005 17:16:29 +0000 (22 17:16 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 22 Jun 2005 20:07:33 +0000 (22 16:07 -0400)
tree1e9ad635821c7b037014307d1a2657dc56b17acf
parentae3884621bf5b4caff7785b9a417f262202965b2
[PATCH] NFS: Hide NFS server-generated readdir cookies from userland

 NFSv3 currently returns the unsigned 64-bit cookie directly to
 userspace. The following patch causes the kernel to generate
 loff_t offsets for the benefit of userland.
 The current server-generated READDIR cookie is cached in the
 nfs_open_context instead of in filp->f_pos, so we still end up work
 correctly under directory insertions/deletion.

Signed-off-by: Olivier Galibert <galibert@pobox.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
fs/nfs/inode.c
include/linux/nfs_fs.h