endif
if LIBLUSTRE
-SUBDIRS = portals lov obdclass ptlrpc obdecho ldlm osc utils mdc #liblustre
+SUBDIRS = portals obdclass lov ptlrpc obdecho ldlm osc utils mdc #liblustre
else
# NOTE: keep extN before obdclass, mds, and obdfilter. Keep obdclass as early
# as possible, to have the best chance at stopping with "wrong kernel version"
# instead of some related build failure.
-SUBDIRS = portals $(DIRS24) obdclass mds utils ldlm obdfilter mdc osc ost
+SUBDIRS = portals obdclass $(DIRS24) mds utils ldlm obdfilter mdc osc ost
SUBDIRS+= llite obdecho lov cobd tests doc scripts conf ptlrpc
endif
if (obd == NULL)
RETURN(-EINVAL);
+ /* Temp fix to stop falling foul of osc_announce_cached() */
+ oa->o_valid &= ~(OBD_MD_FLBLOCKS | OBD_MD_FLRDEV);
+
memset(res, 0, sizeof(*res) * niocount);
CDEBUG(D_PAGE, "%s %d obdos with %d IOs\n",
}
}
- tot_bytes += r->len;
+ tot_bytes += nb->len;
atomic_inc(&obd->u.echo.eo_prep);
GOTO(out, rc = -EFAULT);
}
+ /* BUG 974: when we send back cache grants, don't clear this flag */
+ body->oa.o_valid &= ~OBD_MD_FLRDEV;
+
ioo = lustre_swab_reqbuf(req, 1, sizeof(*ioo), lustre_swab_obd_ioobj);
if (ioo == NULL) {
CERROR("Missing/short ioobj\n");
GOTO(out, rc = -EFAULT);
}
+ /* BUG 974: when we send back cache grants, don't clear this flag */
+ body->oa.o_valid &= ~OBD_MD_FLRDEV;
+
LASSERT_REQSWAB(req, 1);
objcount = req->rq_reqmsg->buflens[1] / sizeof(*ioo);
if (objcount == 0) {