nfs: pass on count for CLONE operations
authorChristoph Hellwig <hch@lst.de>
Fri, 13 Nov 2015 08:38:45 +0000 (09:38 +0100)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 24 Nov 2015 02:52:22 +0000 (21:52 -0500)
Currently we pass uninitialized stack garbage in the count parameter.
The value is usually large enought to clone whole files and thus let
simple tests pass, but it makes the tests for range clones very unhappy.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs42proc.c

index 3e92a3cde15d8b61878a7c2ce7d13da1cf01b290..303d22ef4f370af9734d0eb8c740abfe53d87be3 100644 (file)
@@ -284,6 +284,7 @@ static int _nfs42_proc_clone(struct rpc_message *msg, struct file *src_f,
                .dst_fh = NFS_FH(dst_inode),
                .src_offset = src_offset,
                .dst_offset = dst_offset,
+               .count = count,
                .dst_bitmask = server->cache_consistency_bitmask,
        };
        struct nfs42_clone_res res = {
This page took 0.026888 seconds and 5 git commands to generate.