summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs42.h
diff options
context:
space:
mode:
authorAnna Schumaker2014-09-26 19:58:48 +0200
committerTrond Myklebust2014-09-30 22:24:56 +0200
commit1c6dcbe5ceff81c2cf8d929646af675cd59fe7c0 (patch)
tree1e432e1decca1b3a6de427db31db5737d997a7f5 /fs/nfs/nfs42.h
parentMerge commit '24bab491220f' into client-4.2 (diff)
downloadkernel-qcow2-linux-1c6dcbe5ceff81c2cf8d929646af675cd59fe7c0.tar.gz
kernel-qcow2-linux-1c6dcbe5ceff81c2cf8d929646af675cd59fe7c0.tar.xz
kernel-qcow2-linux-1c6dcbe5ceff81c2cf8d929646af675cd59fe7c0.zip
NFS: Implement SEEK
The SEEK operation is used when an application makes an lseek call with either the SEEK_HOLE or SEEK_DATA flags set. I fall back on nfs_file_llseek() if the server does not have SEEK support. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs42.h')
-rw-r--r--fs/nfs/nfs42.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/nfs/nfs42.h b/fs/nfs/nfs42.h
new file mode 100644
index 000000000000..d10333a197bf
--- /dev/null
+++ b/fs/nfs/nfs42.h
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2014 Anna Schumaker <Anna.Schumaker@Netapp.com>
+ */
+
+#ifndef __LINUX_FS_NFS_NFS4_2_H
+#define __LINUX_FS_NFS_NFS4_2_H
+
+/* nfs4.2proc.c */
+loff_t nfs42_proc_llseek(struct file *, loff_t, int);
+
+/* nfs4.2xdr.h */
+extern struct rpc_procinfo nfs4_2_procedures[];
+
+#endif /* __LINUX_FS_NFS_NFS4_2_H */