From 11bd2628faacad6be34b138a1d6ef1a9303696fe Mon Sep 17 00:00:00 2001 From: nasf Date: Tue, 29 Mar 2011 11:13:28 +0800 Subject: [PATCH] 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 --- lustre/mdt/mdt_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 1.8.3.1