From 35103a9a70ad7924a7291db90d32f3270d181ffb Mon Sep 17 00:00:00 2001 From: yury Date: Sat, 26 Feb 2005 10:57:40 +0000 Subject: [PATCH] - returning correct error code from mds_statfs() amd mds_sync(), as otherwise it may cause segfault in mds_handle(). --- lustre/mds/handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index f7dcd86..68a8452 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -1233,7 +1233,7 @@ static int mds_statfs(struct ptlrpc_request *req) EXIT; out: req->rq_status = rc; - return 0; + return rc; } static int mds_sync(struct ptlrpc_request *req, int offset) @@ -1280,7 +1280,7 @@ static int mds_sync(struct ptlrpc_request *req, int offset) EXIT; out: req->rq_status = rc; - return 0; + return rc; } /* mds_readpage does not take a DLM lock on the inode, because the client must -- 1.8.3.1