From: adilger Date: Mon, 15 Sep 2003 15:14:33 +0000 (+0000) Subject: Return an error when we read zero bytes from the MDS last_rcvd file. X-Git-Tag: 0.9.1~235 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=59c4a07162f3b612e128b535979115e2b39e2771;p=fs%2Flustre-release.git Return an error when we read zero bytes from the MDS last_rcvd file. --- 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); }