fix writing the indirect block
This commit is contained in:
parent
5051da6de3
commit
80f292f830
1 changed files with 1 additions and 1 deletions
2
mkfs.c
2
mkfs.c
|
@ -261,7 +261,7 @@ iappend(uint inum, void *xp, int n)
|
||||||
if (indirect[fbn - NDIRECT] == 0) {
|
if (indirect[fbn - NDIRECT] == 0) {
|
||||||
indirect[fbn - NDIRECT] = xint(freeblock++);
|
indirect[fbn - NDIRECT] = xint(freeblock++);
|
||||||
usedblocks++;
|
usedblocks++;
|
||||||
wsect(INDIRECT, (char *) indirect);
|
wsect(xint(din.addrs[INDIRECT]), (char *) indirect);
|
||||||
}
|
}
|
||||||
x = xint(indirect[fbn-NDIRECT]);
|
x = xint(indirect[fbn-NDIRECT]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue