From 6b739104373875acb95f2d4e10bf62a9dc01e060 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 21 Nov 2002 07:18:56 +0000 Subject: [PATCH] Remove bogus LBUG and error return code. This was triggered by a non-root user trying to create a file and getting -EACCES from lookup_one_len(). --- lustre/mds/handler.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index f7be6f6..24dadaf 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -669,8 +669,7 @@ static int mds_getattr_name(int offset, struct ptlrpc_request *req) if (IS_ERR(dchild)) { CDEBUG(D_INODE, "child lookup error %ld\n", PTR_ERR(dchild)); up(&dir->i_sem); - LBUG(); - GOTO(out_create_dchild, rc = -ESTALE); + GOTO(out_create_dchild, rc = PTR_ERR(dchild)); } rc = mds_getattr_internal(mds, dchild, req, body, offset); -- 1.8.3.1