From 78bcd4ca7b31284194af8ee5a33cb6836edd6ca9 Mon Sep 17 00:00:00 2001 From: Johann Lombardi Date: Tue, 19 Jul 2011 14:15:58 +0200 Subject: [PATCH] LU-507 check_write_rcs() return -EPROTO instead of -ENOSPC remote_rcs[i] is an unsigned value so the check remote_rcs[i] < 0 is always false. Change-Id: I5468d9185e4c8de819f58693375e9d96722b9fbb Signed-off-by: Johann Lombardi Reviewed-on: http://review.whamcloud.com/1115 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: Oleg Drokin --- lustre/osc/osc_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 44e51c1..a7cc433 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -1197,7 +1197,7 @@ static int check_write_rcs(struct ptlrpc_request *req, /* return error if any niobuf was in error */ for (i = 0; i < niocount; i++) { - if (remote_rcs[i] < 0) + if ((int)remote_rcs[i] < 0) return(remote_rcs[i]); if (remote_rcs[i] != 0) { -- 1.8.3.1