# HG changeset patch # User Jonathan Pevarnek # Date 1302741355 14400 # Node ID 3434edb8697c17db4ed35ea79e6e495bf27a535d # Parent dc69d840f7239bf15246f22235911215eb71b696 Oops, I did not actually mean to change the disk... diff -r dc69d840f723 -r 3434edb8697c hercules/disk.img Binary file hercules/disk.img has changed diff -r dc69d840f723 -r 3434edb8697c src/fs.c --- 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; }