fix writing the indirect block

This commit is contained in:
rtm 2006-08-25 01:25:22 +00:00
parent 5051da6de3
commit 80f292f830

2
mkfs.c
View file

@ -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]);
}