Whamcloud - gitweb
b=17493
authoranserper <anserper>
Mon, 3 Nov 2008 21:21:06 +0000 (21:21 +0000)
committeranserper <anserper>
Mon, 3 Nov 2008 21:21:06 +0000 (21:21 +0000)
i=Andreas Dilger
i=Johann Lombardi
handling of a broken readonly key

lustre/mds/handler.c

index 8d4202a..f74bc66 100644 (file)
@@ -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);