diff options
author | Frans Kaashoek <[email protected]> | 2016-09-02 14:59:00 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2016-09-02 14:59:00 -0400 |
commit | b7fed77b7be4608b2ce6233a594c4fd7935e62c7 (patch) | |
tree | d02dd80dd5ec7c162f973e1fd9cf692c968bdc0a | |
parent | 5f03799f84796f057924584cc64cf7f3b5ccd75f (diff) | |
download | xv6-labs-b7fed77b7be4608b2ce6233a594c4fd7935e62c7.tar.gz xv6-labs-b7fed77b7be4608b2ce6233a594c4fd7935e62c7.tar.bz2 xv6-labs-b7fed77b7be4608b2ce6233a594c4fd7935e62c7.zip |
Fix a few lines that runoff is complaining about that they are too long
-rw-r--r-- | console.c | 3 | ||||
-rw-r--r-- | fs.c | 10 | ||||
-rw-r--r-- | fs.h | 7 |
3 files changed, 13 insertions, 7 deletions
@@ -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 && @@ -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); @@ -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 |