]> Devi Nivas Git - cs3210-lab1.git/commitdiff
One ide command for nsector_per_block generates nsector_per_block interrupts,
authorFrans Kaashoek <kaashoek@mit.edu>
Sat, 11 Apr 2015 00:39:40 +0000 (20:39 -0400)
committerFrans Kaashoek <kaashoek@mit.edu>
Sat, 11 Apr 2015 00:39:40 +0000 (20:39 -0400)
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.

fs.h

diff --git a/fs.h b/fs.h
index e74ff5baeacbe0e8f00d9210b45ff4f2eedb72ed..f191d43a66433656539b23ec60aa36a1181b52c7 100644 (file)
--- 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 {