From 80f292f830058bce5874aa091602eb9f61430b8e Mon Sep 17 00:00:00 2001 From: rtm Date: Fri, 25 Aug 2006 01:25:22 +0000 Subject: [PATCH] fix writing the indirect block --- mkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkfs.c b/mkfs.c index 2d84610..9271c0f 100644 --- a/mkfs.c +++ b/mkfs.c @@ -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]); }