summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
authorOlivier Galibert2005-06-22 19:16:29 +0200
committerTrond Myklebust2005-06-22 22:07:33 +0200
commit00a926422765064cb28e218d4837411c88bf6a3e (patch)
tree1e9ad635821c7b037014307d1a2657dc56b17acf /include/linux/nfs_fs.h
parent[PATCH] RPC: kick off socket connect operations faster (diff)
downloadkernel-qcow2-linux-00a926422765064cb28e218d4837411c88bf6a3e.tar.gz
kernel-qcow2-linux-00a926422765064cb28e218d4837411c88bf6a3e.tar.xz
kernel-qcow2-linux-00a926422765064cb28e218d4837411c88bf6a3e.zip
[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>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 4ceac9ddac93..f810195ef7ad 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -84,6 +84,9 @@ struct nfs_open_context {
int error;
struct list_head list;
+
+ int dir_pos; /* Directory cookie cache */
+ __u64 dir_cookie;
};
/*