Skip to content
Snippets Groups Projects
Commit ebb1b5e0 authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Don't LBUG if we get bad stripe data back from the MDS (normally a bug, but

not one that we want to crash on).
parent bf0e3562
No related merge requests found
...@@ -301,7 +301,7 @@ int mdc_req2lustre_md(struct ptlrpc_request *req, int offset, ...@@ -301,7 +301,7 @@ int mdc_req2lustre_md(struct ptlrpc_request *req, int offset,
struct lustre_handle *obd_import, struct lustre_handle *obd_import,
struct lustre_md *md) struct lustre_md *md)
{ {
int rc; int rc = 0;
ENTRY; ENTRY;
LASSERT(md); LASSERT(md);
...@@ -327,14 +327,12 @@ int mdc_req2lustre_md(struct ptlrpc_request *req, int offset, ...@@ -327,14 +327,12 @@ int mdc_req2lustre_md(struct ptlrpc_request *req, int offset,
LASSERT_REPSWABBED (req, offset + 1); LASSERT_REPSWABBED (req, offset + 1);
rc = obd_unpackmd(obd_import, &md->lsm, lmm, lmmsize); rc = obd_unpackmd(obd_import, &md->lsm, lmm, lmmsize);
if (rc < 0) { if (rc >= 0) {
/* XXX don't know if I should do this... */ LASSERT (rc >= sizeof (*md->lsm));
CERROR ("Error %d unpacking eadata\n", rc); rc = 0;
LBUG();
} }
LASSERT (rc >= sizeof (*md->lsm));
} }
RETURN(0); RETURN(rc);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment