From 42c01ae524ee566e225a91f3354ae5c4be4eb7ea Mon Sep 17 00:00:00 2001 From: fanyong Date: Fri, 3 Nov 2006 10:55:23 +0000 Subject: [PATCH] Fix ASSERTION for local client when identity_upcall is disabled. --- lustre/mdt/mdt_lib.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lustre/mdt/mdt_lib.c b/lustre/mdt/mdt_lib.c index 39b5d75..aa49766 100644 --- a/lustre/mdt/mdt_lib.c +++ b/lustre/mdt/mdt_lib.c @@ -481,10 +481,14 @@ int mdt_check_ucred(struct mdt_thread_info *info) } } - if (is_identity_get_disabled(mdt->mdt_identity_cache) && - med->med_rmtclient) { - CERROR("remote client must run with identity_get enabled!\n"); - RETURN(-EACCES); + if (is_identity_get_disabled(mdt->mdt_identity_cache)) { + if (med->med_rmtclient) { + CERROR("remote client must run with " + "identity_get enabled!\n"); + RETURN(-EACCES); + } else { + RETURN(0); + } } identity = mdt_identity_get(mdt->mdt_identity_cache, pud->pud_uid); -- 1.8.3.1