From 6f09352931833e29ee6d758d031339914e15a671 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 24 Oct 2008 20:52:32 +0000 Subject: [PATCH] Branch HEAD Return a protocol error from ost_punch() like all other handler methods if there is a request format error, instead of -EINVAL. --- lustre/ost/ost_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ost/ost_handler.c b/lustre/ost/ost_handler.c index a9ed9c5..3e6f0f2 100644 --- a/lustre/ost/ost_handler.c +++ b/lustre/ost/ost_handler.c @@ -293,7 +293,7 @@ static int ost_punch(struct obd_export *exp, struct ptlrpc_request *req, if ((oinfo.oi_oa->o_valid & (OBD_MD_FLSIZE | OBD_MD_FLBLOCKS)) != (OBD_MD_FLSIZE | OBD_MD_FLBLOCKS)) - RETURN(-EINVAL); + RETURN(-EPROTO); rc = lustre_pack_reply(req, 2, size, NULL); if (rc) -- 1.8.3.1