From: rread Date: Fri, 14 Nov 2003 22:24:19 +0000 (+0000) Subject: In osc_interpret_create, don't overwrite rc if it's already set. X-Git-Tag: v1_7_0_51~2^9~161 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=8e44347e68f5955d7ea6e378340205c5b22016ef;p=fs%2Flustre-release.git In osc_interpret_create, don't overwrite rc if it's already set. --- diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index 8977fe7..0b8c509 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -67,7 +67,7 @@ static int osc_interpret_create(struct ptlrpc_request *req, void *data, if (req->rq_repmsg) { body = lustre_swab_repbuf(req, 0, sizeof(*body), lustre_swab_ost_body); - if (body == NULL) + if (body == NULL && rc == 0) rc = -EPROTO; } @@ -80,7 +80,7 @@ static int osc_interpret_create(struct ptlrpc_request *req, void *data, oscc->oscc_flags |= OSCC_FLAG_NOSPC; } else if (rc != 0 && rc != -EIO) { DEBUG_REQ(D_ERROR, req, - "unknown rc %d from async create: failing oscc\n", + "unknown rc %d from async create: failing oscc", rc); ptlrpc_fail_import(req->rq_import, req->rq_import_generation); }