]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: mds returns -5 error when the deleted file does not exist 30403/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 16 Sep 2019 21:46:28 +0000 (05:46 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Tue, 17 Sep 2019 10:46:36 +0000 (18:46 +0800)
commitcfb8e61a7cd12667ce3738bd9c9a4601b98c4bf9
treea0b8312c189d7319cfef563b892e5ce6bfb1172a
parent33a5fae1cfeaf267efdb6b335a6e6662e24992c2
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>
src/mds/MDCache.cc