From c4322370fa120c92ee634b61752696133d95eb20 Mon Sep 17 00:00:00 2001 From: anserper Date: Mon, 3 Nov 2008 21:21:06 +0000 Subject: [PATCH] b=17493 i=Andreas Dilger i=Johann Lombardi handling of a broken readonly key --- lustre/mds/handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 8d4202a..f74bc66 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -1391,7 +1391,8 @@ static int mds_set_info_rpc(struct obd_export *exp, struct ptlrpc_request *req) lustre_msg_set_status(req->rq_repmsg, 0); - if (KEY_IS(KEY_READONLY)) { + /* Accept the broken "read-only" key from 1.6.6 clients. b=17493 */ + if (KEY_IS(KEY_READONLY) || KEY_IS(KEY_READONLY_166COMPAT)) { if (val == NULL || vallen < sizeof(__u32)) { DEBUG_REQ(D_HA, req, "no set_info val"); RETURN(-EFAULT); -- 1.8.3.1