data = (char *)lustre_msg_buf(msg, 2, 0);
datalen = data ? msg->buflens[2] : 0;
- if (datalen == 0 && S_ISREG(rec->cr_mode)) {
- /*Get lov md from inode*/
- mds_read_md(cmobd->cache_exp->exp_obd, &rec->cr_replayid,
- &data, &datalen);
- if (datalen > 0)
- alloc = 1;
- }
OBD_ALLOC(op_data, sizeof(*op_data));
if (op_data == NULL)
GOTO(exit, rc = -ENOMEM);
if (IS_ERR(handle))
GOTO(cleanup, rc = PTR_ERR(handle));
rc = ll_vfs_create(dir, dchild, rec->ur_mode, NULL);
-#if 0
- if (rc == 0 && rec->ur_eadata) {
- /*for CMOBD to set lov md info when cmobd reint create*/
- CDEBUG(D_INFO, "set lsm %p, len %d to inode %lu \n",
- rec->ur_eadata, rec->ur_eadatalen,
- dchild->d_inode->i_ino);
- fsfilt_set_md(obd, dchild->d_inode, handle, rec->ur_eadata,
- rec->ur_eadatalen, EA_LOV);
- }
-#endif
EXIT;
break;
}