From: nasf Date: Tue, 29 Mar 2011 03:13:28 +0000 (+0800) Subject: LU-167 Return "-ENOENT" instead of "-ESTALE" when getattr against non-existent object X-Git-Tag: 2.0.59-llnl3-base~4 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=11bd2628faacad6be34b138a1d6ef1a9303696fe LU-167 Return "-ENOENT" instead of "-ESTALE" when getattr against non-existent object Change-Id: I17148a361e711c92f31f6a9318512267a866c724 Signed-off-by: nasf Reviewed-on: http://review.whamcloud.com/369 Reviewed-by: Oleg Drokin Reviewed-by: wangdi Tested-by: Hudson --- diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index f97bf96..c111721 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -992,7 +992,7 @@ relock: LU_OBJECT_DEBUG(D_WARNING, info->mti_env, &child->mot_obj.mo_lu, "Object doesn't exist!\n"); - GOTO(out_child, rc = -ESTALE); + GOTO(out_child, rc = -ENOENT); } if (!(child_bits & MDS_INODELOCK_UPDATE)) {