]> asedeno.scripts.mit.edu Git - linux.git/commit
NFS: for "inter" copy treat ESTALE as ENOTSUPP
authorOlga Kornievskaia <kolga@netapp.com>
Mon, 25 Sep 2017 19:59:44 +0000 (15:59 -0400)
committerOlga Kornievskaia <olga.kornievskaia@gmail.com>
Wed, 9 Oct 2019 16:06:00 +0000 (12:06 -0400)
commit7e350197a1c10ad137ec51689f317e3e94e4cc41
treeda7d8b09f82bc3035012983848b389a0ae73e729
parent0b9018b9cab9b6a30fd6758ff0745ff74efcf374
NFS: for "inter" copy treat ESTALE as ENOTSUPP

If the client sends an "inter" copy to the destination server but
it only supports "intra" copy, it can return ESTALE (since it
doesn't know anything about the file handle from the other server
and does not recognize the special case of "inter" copy). Translate
this error as ENOTSUPP and also send OFFLOAD_CANCEL to the source
server so that it can clean up state.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
fs/nfs/nfs42proc.c