diff options
| author | rtm <rtm> | 2006-08-25 01:25:22 +0000 | 
|---|---|---|
| committer | rtm <rtm> | 2006-08-25 01:25:22 +0000 | 
| commit | 80f292f830058bce5874aa091602eb9f61430b8e (patch) | |
| tree | 4e995d68e49a710112500af347ccc8029a9ef380 | |
| parent | 5051da6de3fcabb9e280d3bf36549da0ac0d5738 (diff) | |
| download | xv6-labs-80f292f830058bce5874aa091602eb9f61430b8e.tar.gz xv6-labs-80f292f830058bce5874aa091602eb9f61430b8e.tar.bz2 xv6-labs-80f292f830058bce5874aa091602eb9f61430b8e.zip  | |
fix writing the indirect block
| -rw-r--r-- | mkfs.c | 2 | 
1 files changed, 1 insertions, 1 deletions
@@ -261,7 +261,7 @@ iappend(uint inum, void *xp, int n)        if (indirect[fbn - NDIRECT] == 0) {  	indirect[fbn - NDIRECT] = xint(freeblock++);  	usedblocks++; -	wsect(INDIRECT, (char *) indirect); +	wsect(xint(din.addrs[INDIRECT]), (char *) indirect);        }        x = xint(indirect[fbn-NDIRECT]);      }  | 
