From 59c4a07162f3b612e128b535979115e2b39e2771 Mon Sep 17 00:00:00 2001 From: adilger Date: Mon, 15 Sep 2003 15:14:33 +0000 Subject: [PATCH] Return an error when we read zero bytes from the MDS last_rcvd file. --- lustre/mds/mds_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mds/mds_fs.c b/lustre/mds/mds_fs.c index 224591a..40d281b 100644 --- a/lustre/mds/mds_fs.c +++ b/lustre/mds/mds_fs.c @@ -252,7 +252,7 @@ static int mds_read_last_rcvd(struct obd_device *obd, struct file *file) if (rc != sizeof(*msd)) { CERROR("error reading MDS %s: rc = %d\n", LAST_RCVD,rc); - if (rc > 0) + if (rc >= 0) rc = -EIO; GOTO(err_msd, rc); } -- 1.8.3.1