Whamcloud - gitweb
revert last commit, transfer a positive value should be better.
authorlsy <lsy>
Fri, 13 Oct 2006 12:58:52 +0000 (12:58 +0000)
committerlsy <lsy>
Fri, 13 Oct 2006 12:58:52 +0000 (12:58 +0000)
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c

index f408a6a..359197a 100644 (file)
@@ -1629,8 +1629,8 @@ static int mdc_interpret_renew_capa(struct ptlrpc_request *req, void *unused,
         if (body == NULL)
                 GOTO(out, capa = ERR_PTR(-EFAULT));
 
-        if (body->size)
-                GOTO(out, capa = ERR_PTR((long)body->size));
+        if (body->flags)
+                GOTO(out, capa = ERR_PTR(-(long)body->flags));
 
         if ((body->valid & OBD_MD_FLOSSCAPA) == 0)
                 GOTO(out, capa = ERR_PTR(-EFAULT));
index 1ca3fdc..be65049 100644 (file)
@@ -464,7 +464,7 @@ out:
          * will handle this internally, see mdc_interpret_renew_capa.
          * body->size is borrowed to store errno.
          */
-        body->size = (__u64)rc;
+        body->flags = (__u32)-rc;
         return 0;
 }