Whamcloud - gitweb
Return an error when we read zero bytes from the MDS last_rcvd file.
authoradilger <adilger>
Mon, 15 Sep 2003 15:14:33 +0000 (15:14 +0000)
committeradilger <adilger>
Mon, 15 Sep 2003 15:14:33 +0000 (15:14 +0000)
lustre/mds/mds_fs.c

index 224591a..40d281b 100644 (file)
@@ -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);
         }