[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [Mint-cvs] [FreeMiNT CVS] freemint/sys



Woah!

The comment says A-C, which means 0, 1 and 2. So it shouldn't be >=.

Please add details why ? Otherwise I'll need to revert.

Alan.

On 10/12/13 10:42, cvs@sparemint.org wrote:
Update of /mint/freemint/sys
In directory mail.sparemint.org:/tmp/cvs-serv19680

Modified Files:
	filesys.c
Log Message:
- fix drive-check for ENODEV
- better usable debug


Index: freemint/sys/filesys.c
diff -u freemint/sys/filesys.c:1.45 freemint/sys/filesys.c:1.46
--- freemint/sys/filesys.c:1.45	Tue Jan  1 15:04:52 2013
+++ freemint/sys/filesys.c	Sat Oct 12 05:42:07 2013
@@ -1,5 +1,5 @@
  /*
- * $Id: filesys.c,v 1.45 2013/01/01 20:04:52 alanh Exp $
+ * $Id: filesys.c,v 1.46 2013/10/12 09:42:07 hek Exp $
   *
   * This file has been modified as part of the FreeMiNT project. See
   * the file Changes.MH for details and dates.
@@ -666,7 +666,7 @@
  		 * Note that ENODEV must be tested for drives A-C, or else
  		 * booting may not work properly.
  		 */
-		if (d > 2 && r == ENODEV)
+		if (d >= 2 && r == ENODEV)
  			return 0;	/* assume no change */
  		else
  			return r;
@@ -894,7 +894,7 @@
  		if (r > 0)
  			r = ECHMEDIA;
- PATH2COOKIE_DB (("relpath2cookie: returning %d", r));
+		PATH2COOKIE_DB (("relpath2cookie(1): returning %d", r));
  		return r;
  	}
@@ -957,7 +957,7 @@
  			release_cookie (&dir);
  		}
- PATH2COOKIE_DB (("relpath2cookie: returning %ld", r));
+		PATH2COOKIE_DB (("relpath2cookie(2): returning %ld", r));
  		return r;
  	}
@@ -1161,7 +1161,7 @@
  		}
  	}
- PATH2COOKIE_DB (("relpath2cookie: returning %ld", r));
+	PATH2COOKIE_DB (("relpath2cookie(3): returning %ld", r));
  	return r;
  }
_______________________________________________
cz-bobek-lists-mint-cvs mailing list
mint-cvs@lists.bobek.cz
https://lists.bobek.cz/mailman/listinfo/cz-bobek-lists-mint-cvs