From 1de76378cff4b7700594424a065bbf106ad302ba Mon Sep 17 00:00:00 2001 From: lsy Date: Fri, 13 Oct 2006 12:37:24 +0000 Subject: [PATCH] for capability renewal, once object not exist, don't return -ENOENT directly, mdt_renew_capa will handle this error. --- lustre/mdt/mdt_handler.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 6f26e99..35cc2fe 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -1510,13 +1510,11 @@ static int mdt_body_unpack(struct mdt_thread_info *info, __u32 flags) if ((flags & HABEO_CORPUS) && !mdt_object_exists(obj)) { mdt_object_put(env, obj); -#if 0 /* for capability renew ENOENT will be handled in * mdt_renew_capa */ if (body->valid & OBD_MD_FLOSSCAPA) rc = 0; else -#endif rc = -ENOENT; } else { info->mti_object = obj; @@ -3308,7 +3306,7 @@ static int mdt_init0(const struct lu_env *env, struct mdt_device *m, spin_lock_init(&m->mdt_ioepoch_lock); m->mdt_opts.mo_compat_resname = 0; - m->mdt_capa_timeout = 320; // CAPA_TIMEOUT; + m->mdt_capa_timeout = 320; //CAPA_TIMEOUT; m->mdt_capa_alg = CAPA_HMAC_ALG_SHA1; m->mdt_ck_timeout = CAPA_KEY_TIMEOUT; obd->obd_replayable = 1; -- 1.8.3.1