Whamcloud - gitweb
- many gcc4 compilation fixes (warnings)
[fs/lustre-release.git] / lustre / mds / mds_lmv.c
index 8e7ba8b..ce81bc0 100644 (file)
@@ -53,7 +53,8 @@ int mds_md_connect(struct obd_device *obd, char *md_name)
 {
         struct mds_obd *mds = &obd->u.mds;
         struct lustre_handle conn = {0};
-        int rc, valsize, value;
+        int rc, value;
+        __u32 valsize;
         ENTRY;
 
         if (IS_ERR(mds->mds_md_obd))
@@ -936,7 +937,7 @@ int mds_choose_mdsnum(struct obd_device *obd, const char *name, int len, int fla
                         __u64 count = lmv->desc.ld_tgt_count;
                         i = do_div(nid, count);
                         CWARN("client from %s creates top dir %*s on mds #%d\n",
-                              ptlrpc_peernid2str(peer, peer_str), len, name, i);
+                              ptlrpc_peernid2str(peer,peer_str), len, name, i+1);
                 }
         } else if (mds->mds_md_exp) {
                 lmv = &mds->mds_md_exp->exp_obd->u.lmv;