From: fanyong Date: Fri, 3 Nov 2006 10:55:23 +0000 (+0000) Subject: Fix ASSERTION for local client when identity_upcall is disabled. X-Git-Tag: v1_8_0_110~486^2~254 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=42c01ae524ee566e225a91f3354ae5c4be4eb7ea;p=fs%2Flustre-release.git Fix ASSERTION for local client when identity_upcall is disabled. --- 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);