Skip to content

Commit fdd2630

Browse files
jtlaytonchucklever
authored andcommitted
nfsd: fix change_info in NFSv4 RENAME replies
nfsd sends the transposed directory change info in the RENAME reply. The source directory is in save_fh and the target is in current_fh. Reported-by: Zhi Li <yieli@redhat.com> Reported-by: Benjamin Coddington <bcodding@redhat.com> Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2218844 Signed-off-by: Jeff Layton <jlayton@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent b38a602 commit fdd2630

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfsd/nfs4proc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,8 +1058,8 @@ nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
10581058
rename->rn_tname, rename->rn_tnamelen);
10591059
if (status)
10601060
return status;
1061-
set_change_info(&rename->rn_sinfo, &cstate->current_fh);
1062-
set_change_info(&rename->rn_tinfo, &cstate->save_fh);
1061+
set_change_info(&rename->rn_sinfo, &cstate->save_fh);
1062+
set_change_info(&rename->rn_tinfo, &cstate->current_fh);
10631063
return nfs_ok;
10641064
}
10651065

0 commit comments

Comments
 (0)