]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84622904a76aa6524af074d9fb9a402017b394ad
tree71242d268c0d1ca845fb2e8ed55e1e3c4d3de134
parent9e5b1c14158a27f87979d3602b86503a3a42a2e6
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