Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Fri, 4 Aug 2006 02:56:28 +0000 (02:56 +0000)
committerwangdi <wangdi>
Fri, 4 Aug 2006 02:56:28 +0000 (02:56 +0000)
revert "reset lmm_md_size" back. since we need it

lustre/mdt/mdt_open.c

index 51b7dcb..c27311a 100644 (file)
@@ -119,7 +119,9 @@ static int mdt_mfd_open(struct mdt_thread_info *info,
                         /*No EA, check whether it is will set regEA and dirEA
                          *since in above attr get, these size might be zero,
                          *so reset it, to retrieve the MD after create obj*/
-
+                        ma->ma_lmm_size = req_capsule_get_size(&info->mti_pill,
+                                                               &RMF_MDT_MD,
+                                                               RCL_SERVER);
                         LASSERT(p != NULL);
                         rc = mdt_create_data_obj(info, p, o);
                         if (rc)