Skip to content

Commit

Permalink
fix writing the indirect block
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm committed Aug 25, 2006
1 parent 5051da6 commit 80f292f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 80f292f

Please sign in to comment.