]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: mds returns -5 error when the deleted file does not exist 31381/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, 4 Nov 2019 18:20:57 +0000 (19:20 +0100)
commite0f03c8636183e8949ffb0ff595e53baebb6971b
tree7e583365f5a5ccdd03c87aff247994212f2581f0
parentf5c23c32e7009b679da0813d9d0fc9833d5281d2
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