- if (cmobd_lmv_obd(cmobd->master_exp->exp_obd)) {
- /*
- * making sure, that both obds are ready. This is especially
- * important in the case of using LMV as master.
- */
- rc = obd_getready(cmobd->master_exp);
- if (rc) {
- CERROR("can't get %s obd ready.\n",
- master_uuid.uuid);
- GOTO(put_cache, rc);
- }
-
- rc = obd_getready(cmobd->cache_exp);
- if (rc) {
- CERROR("can't get %s obd ready.\n",
- cache_uuid.uuid);
- GOTO(put_cache, rc);
- }
-
- /*
- * requesting master obd to have its root inode store cookie to
- * be able to save it to local root inode EA.
- */
- valsize = sizeof(struct lustre_id);
-
- rc = obd_get_info(cmobd->master_exp, strlen("rootid"),
- "rootid", &valsize, &mid);
+ if (obd_md_type(cmobd->master_exp->exp_obd)) {
+ __u32 size = sizeof(struct fid_extent);
+ struct fid_extent ext;
+
+ rc = cmobd_init_ea_size(obd);