From: Frans Kaashoek Date: Sat, 11 Apr 2015 00:39:40 +0000 (-0400) Subject: One ide command for nsector_per_block generates nsector_per_block interrupts, X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=de4af193c87b3a7fa8762ccaeb81a6addf168799;p=cs3210-lab0.git One ide command for nsector_per_block generates nsector_per_block interrupts, instead of 1. ideintr() should wait for nsector_per_block interrupts before waking up the reader; now it wakes up the reader after 1 interrupt, which apparently means that the first sector is available of the command instead of all. For now keep BSIZE to 512. --- diff --git a/fs.h b/fs.h index e74ff5b..f191d43 100644 --- a/fs.h +++ b/fs.h @@ -9,7 +9,7 @@ // Then sb.nlog log blocks. #define ROOTINO 1 // root i-number -#define BSIZE 1024 // block size +#define BSIZE 512 // block size // File system super block struct superblock {