static int lmv_placment_policy(struct obd_device *obd,
struct placement_hint *hint)
{
+ struct lmv_obd *lmv = &obd->u.lmv;
ENTRY;
/* here are some policies to allocate new fid */
/* sequences among all tgts are not well balanced, allocate new
* fid taking this into account to balance them. */
}
-
+ //stub to place new dir on second MDS
+ if (hint->ph_opc == LUSTRE_OPC_MKDIR)
+ RETURN(lmv->desc.ld_tgt_count - 1);
+
RETURN(0);
}