]> Devi Nivas Git - cs3210-lab0.git/commitdiff
Fix a few lines that runoff is complaining about that they are too long
authorFrans Kaashoek <kaashoek@mit.edu>
Fri, 2 Sep 2016 18:59:00 +0000 (14:59 -0400)
committerFrans Kaashoek <kaashoek@mit.edu>
Fri, 2 Sep 2016 18:59:00 +0000 (14:59 -0400)
console.c
fs.c
fs.h

index d84c7ffd7230b7116e31ae1788f29e56e869cc42..fa611efa82e5f8bc2657041003ef36a01cce67e5 100644 (file)
--- a/console.c
+++ b/console.c
@@ -195,7 +195,8 @@ consoleintr(int (*getc)(void))
   while((c = getc()) >= 0){
     switch(c){
     case C('P'):  // Process listing.
-      doprocdump = 1;   // procdump() locks cons.lock indirectly; invoke later
+      // procdump() locks cons.lock indirectly; invoke later
+      doprocdump = 1;
       break;
     case C('U'):  // Kill line.
       while(input.e != input.w &&
diff --git a/fs.c b/fs.c
index f800b77721d4248b92445aab8d991b3fceb339b4..6887dbc432175e2244798d90b1d0e9abe40b20d6 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -22,7 +22,9 @@
 
 #define min(a, b) ((a) < (b) ? (a) : (b))
 static void itrunc(struct inode*);
-struct superblock sb;   // there should be one per dev, but we run with one dev
+// there should be one superblock per disk device, but we run with
+// only one device
+struct superblock sb; 
 
 // Read the super block.
 void
@@ -164,8 +166,10 @@ iinit(int dev)
 {
   initlock(&icache.lock, "icache");
   readsb(dev, &sb);
-  cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d inodestart %d bmap start %d\n", sb.size,
-          sb.nblocks, sb.ninodes, sb.nlog, sb.logstart, sb.inodestart, sb.bmapstart);
+  cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d\
+          inodestart %d bmap start %d\n", sb.size, sb.nblocks,
+          sb.ninodes, sb.nlog, sb.logstart, sb.inodestart,
+          sb.bmapstart);
 }
 
 static struct inode* iget(uint dev, uint inum);
diff --git a/fs.h b/fs.h
index e64ecc0ad507a00743d4c18e2edfbcfe1eaf1f6d..3214f1d7f72b52fb44ad6ad0ab8617f62149a665 100644 (file)
--- a/fs.h
+++ b/fs.h
@@ -6,10 +6,11 @@
 #define BSIZE 512  // block size
 
 // Disk layout:
-// [ boot block | super block | log | inode blocks | free bit map | data blocks ]
+// [ boot block | super block | log | inode blocks |
+//                                          free bit map | data blocks]
 //
-// mkfs computes the super block and builds an initial file system. The super describes
-// the disk layout:
+// mkfs computes the super block and builds an initial file system. The
+// super block describes the disk layout:
 struct superblock {
   uint size;         // Size of file system image (blocks)
   uint nblocks;      // Number of data blocks