nfs42: respect clone_blksize
authorPeng Tao <tao.peng@primarydata.com>
Fri, 25 Sep 2015 18:24:38 +0000 (02:24 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 15 Oct 2015 20:08:28 +0000 (16:08 -0400)
commit811b7b85d6641df580a6c43184cf13d6fcc7498d
tree71242d268c0d1ca845fb2e8ed55e1e3c4d3de134
parent2a92ee92d4545448066fb664674c0ae5a9d5ea99
nfs42: respect clone_blksize

draft-ietf-nfsv4-minorversion2-38.txt says:
   Both cl_src_offset and
   cl_dst_offset must be aligned to the clone block size Section 12.2.1.
   The number of bytes to be cloned must be a multiple of the clone
   block size, except in the case in which cl_src_offset plus the number
   of bytes to be cloned is equal to the source file size.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4file.c