diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2014-09-26 19:58:27 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-09-29 20:35:20 +0200 |
commit | 24bab491220faa446d945624086d838af41d616c (patch) | |
tree | e5954e85fe1cfa6fb138d5c660fae8e733527f1a /fs/nfsd/xdr4.h | |
parent | NFSD: Add generic v4.2 infrastructure (diff) | |
download | linux-24bab491220faa446d945624086d838af41d616c.tar.xz linux-24bab491220faa446d945624086d838af41d616c.zip |
NFSD: Implement SEEK
This patch adds server support for the NFS v4.2 operation SEEK, which
returns the position of the next hole or data segment in a file.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/xdr4.h')
-rw-r--r-- | fs/nfsd/xdr4.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h index 465e7799742a..5720e9457f33 100644 --- a/fs/nfsd/xdr4.h +++ b/fs/nfsd/xdr4.h @@ -428,6 +428,17 @@ struct nfsd4_reclaim_complete { u32 rca_one_fs; }; +struct nfsd4_seek { + /* request */ + stateid_t seek_stateid; + loff_t seek_offset; + u32 seek_whence; + + /* response */ + u32 seek_eof; + loff_t seek_pos; +}; + struct nfsd4_op { int opnum; __be32 status; @@ -473,6 +484,9 @@ struct nfsd4_op { struct nfsd4_reclaim_complete reclaim_complete; struct nfsd4_test_stateid test_stateid; struct nfsd4_free_stateid free_stateid; + + /* NFSv4.2 */ + struct nfsd4_seek seek; } u; struct nfs4_replay * replay; }; |