changeset 58:3434edb8697c

Oops, I did not actually mean to change the disk...
author Jonathan Pevarnek <pevarnj@gmail.com>
date Wed, 13 Apr 2011 20:35:55 -0400
parents dc69d840f723
children f9aba6b4a9cf
files hercules/disk.img src/fs.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
Binary file hercules/disk.img has changed
--- a/src/fs.c	Wed Apr 13 18:48:29 2011 -0400
+++ b/src/fs.c	Wed Apr 13 20:35:55 2011 -0400
@@ -212,7 +212,8 @@
 	DskBlk *nextDSKB = (DskBlk *) nextFSB; //where to get the data from
 	if(fba_write_blk(DevID, blkno*2, nextDSKB)) return -1; //load from the cache to the disk
 	if(fba_write_blk(DevID, blkno*2 + 1, nextDSKB + 1)) return -1;
-	if(!isBlockAt(blkno)) setBlockAt(blkno, 1);
+	if(!isBlockAt(blkno))
+		if(setBlockAt(blkno, 1)) return -1;
 	return 0;
 }