diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2014-09-26 13:58:48 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-09-30 16:24:56 -0400 |
commit | 1c6dcbe5ceff81c2cf8d929646af675cd59fe7c0 (patch) | |
tree | 1e432e1decca1b3a6de427db31db5737d997a7f5 /fs/nfs/nfs4xdr.c | |
parent | 4a3a0ebad1360696125bf34d89de55d71c4d0eaa (diff) |
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/nfs4xdr.c')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index e13b59d8d9aa..949e8717118c 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -7427,6 +7427,10 @@ nfs4_stat_to_errno(int stat) | |||
7427 | return -stat; | 7427 | return -stat; |
7428 | } | 7428 | } |
7429 | 7429 | ||
7430 | #ifdef CONFIG_NFS_V4_2 | ||
7431 | #include "nfs42xdr.c" | ||
7432 | #endif /* CONFIG_NFS_V4_2 */ | ||
7433 | |||
7430 | #define PROC(proc, argtype, restype) \ | 7434 | #define PROC(proc, argtype, restype) \ |
7431 | [NFSPROC4_CLNT_##proc] = { \ | 7435 | [NFSPROC4_CLNT_##proc] = { \ |
7432 | .p_proc = NFSPROC4_COMPOUND, \ | 7436 | .p_proc = NFSPROC4_COMPOUND, \ |
@@ -7495,6 +7499,9 @@ struct rpc_procinfo nfs4_procedures[] = { | |||
7495 | enc_bind_conn_to_session, dec_bind_conn_to_session), | 7499 | enc_bind_conn_to_session, dec_bind_conn_to_session), |
7496 | PROC(DESTROY_CLIENTID, enc_destroy_clientid, dec_destroy_clientid), | 7500 | PROC(DESTROY_CLIENTID, enc_destroy_clientid, dec_destroy_clientid), |
7497 | #endif /* CONFIG_NFS_V4_1 */ | 7501 | #endif /* CONFIG_NFS_V4_1 */ |
7502 | #ifdef CONFIG_NFS_V4_2 | ||
7503 | PROC(SEEK, enc_seek, dec_seek), | ||
7504 | #endif /* CONFIG_NFS_V4_2 */ | ||
7498 | }; | 7505 | }; |
7499 | 7506 | ||
7500 | const struct rpc_version nfs_version4 = { | 7507 | const struct rpc_version nfs_version4 = { |