[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MinixFS 0.6pl11: a few bug fixes
Here is a patch for a few bugs in MinixFS 0.6pl11. The typo in
inode.c was mine.
--- hdio.c~ Sat May 14 04:35:22 1994
+++ hdio.c Tue Oct 25 10:08:56 1994
@@ -7,9 +7,9 @@
#include "minixfs.h"
#include "global.h"
#define XRWABS RWABS
-#define DWARN(mes,drive) ALERT("Drive %c: " mes,drive)
+#define DWARN(mes,drive) ALERT("Drive %c: " mes,drive+'A')
#else
-#define DWARN(mes,drive) fprintf(stderr,"Drive %c: " mes "\n",drive)
+#define DWARN(mes,drive) fprintf(stderr,"Drive %c: " mes "\n",drive+'A')
#define ALERT(x) fprintf(stderr,x "\n")
#define NEED_SUPER
#define RWABS Rwabs
@@ -76,7 +76,7 @@
"Unrecognised partition id", /* 9 */
"XHInqTarget failed", /* 10 */
"Unsupported physical sector size", /* 11 */
-"Invalid partition start (zero BPB?)" /* 12 */
+"Invalid partition start (zero BPB?)", /* 12 */
"ICD software too old to fix", /* 13 */
/* These are from set_lrecno */
"Memory allocation failure", /* 14 */
--- inode.c~ Sun Jan 1 02:02:32 1995
+++ inode.c Sun Feb 26 14:57:50 1995
@@ -267,7 +267,7 @@
ldirty1 = 0;
r = cache_get (PIND (vers, tmp, j), drive,
&syscache, NOGUESS);
- tmp2 = q->buffer;
+ tmp2 = r->buffer;
for (k = 0; k < psblk->zpind; k++)
{
if (PIND (vers, tmp2, k))
--- minixfs.c~ Sun Jan 1 02:02:44 1995
+++ minixfs.c Sun Feb 26 15:01:02 1995
@@ -1527,7 +1527,7 @@
tmpaux=dest->aux;
*dest=*src;
if(restore_dev!=-1 &&
- (tmpaux & (AUX_DEV|AUX_DRV))== restore_dev|AUX_DRV )
+ (tmpaux & (AUX_DEV|AUX_DRV))== (restore_dev|AUX_DRV) )
dest->dev = tmpaux & AUX_DEV;
return 0;