[Ocfs2-tools-commits] jlbec commits r279 - trunk/fsck.ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Sep 29 13:11:16 CDT 2004


Author: jlbec
Date: 2004-09-29 13:11:14 -0500 (Wed, 29 Sep 2004)
New Revision: 279

Modified:
   trunk/fsck.ocfs2/problem.c
Log:
suggestions on read_a_char

Modified: trunk/fsck.ocfs2/problem.c
===================================================================
--- trunk/fsck.ocfs2/problem.c	2004-09-29 17:59:24 UTC (rev 278)
+++ trunk/fsck.ocfs2/problem.c	2004-09-29 18:11:14 UTC (rev 279)
@@ -41,6 +41,19 @@
 	ret = read(fd, &c, sizeof(c));
 	if (ret != sizeof(c))
 		return EOF;
+	/*
+	 * Don't you mean:
+	 * top:
+	 * ret = read(fd, &c, 1);
+	 * if (ret == 0)
+	 * 	return EOF;
+	 * else if (ret < 0) {
+	 * 	if (errno == EINTR)
+	 * 		goto top;
+	 * 	else
+	 * 		return -errno;
+	 * }
+	 */
 
 	return c;
 }



More information about the Ocfs2-tools-commits mailing list