]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: mds returns -5 error when the deleted file does not exist 30767/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 16 Sep 2019 21:46:28 +0000 (05:46 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 7 Oct 2019 18:57:21 +0000 (20:57 +0200)
commit5fdf9e9dd0010ba8b971155d3e6b56751317094c
treeebb2204d79dd72baf5047e96415a463ed99a878d
parent1bc9b1f077cabbda800d949906569e5bf2edf32e
mds: mds returns -5 error when the deleted file does not exist

For files that do not exist, we should set it to -ESTALE instead of -EIO,
because this error code will be returned to the NFS client and transparently
passed to the application layer. The application layer may handle -EIO and
-ESTALE differently. And lead to misjudgment

Fixes:https://tracker.ceph.com/issues/41868
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
(cherry picked from commit cfb8e61a7cd12667ce3738bd9c9a4601b98c4bf9)
src/mds/MDCache.cc