Anna Schumaker
624bd5b7b6
nfs: Add DEALLOCATE support
...
This patch adds support for using the NFS v4.2 operation DEALLOCATE to
punch holes in a file.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com >
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com >
2014-11-25 16:38:32 -05:00
Anna Schumaker
f4ac1674f5
nfs: Add ALLOCATE support
...
This patch adds support for using the NFS v4.2 operation ALLOCATE to
preallocate data in a file.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com >
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com >
2014-11-25 16:38:32 -05:00
Anna Schumaker
878ffa9f85
NFS: Use nfs_server_capable() for checknig NFS_CAP_SEEK
...
This should make the code easier to maintain in the future.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com >
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com >
2014-11-24 12:49:13 -05:00
Anna Schumaker
1c6dcbe5ce
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 >
2014-09-30 16:24:56 -04:00