fbn 259 mkfs.c uint fbn, off, n1; fbn 269 mkfs.c fbn = off / BSIZE; fbn 270 mkfs.c assert(fbn < MAXFILE); fbn 271 mkfs.c if(fbn < NDIRECT){ fbn 272 mkfs.c if(xint(din.addrs[fbn]) == 0){ fbn 273 mkfs.c din.addrs[fbn] = xint(freeblock++); fbn 275 mkfs.c x = xint(din.addrs[fbn]); fbn 281 mkfs.c if(indirect[fbn - NDIRECT] == 0){ fbn 282 mkfs.c indirect[fbn - NDIRECT] = xint(freeblock++); fbn 285 mkfs.c x = xint(indirect[fbn-NDIRECT]); fbn 287 mkfs.c n1 = min(n, (fbn + 1) * BSIZE - off); fbn 289 mkfs.c bcopy(p, buf + off - (fbn * BSIZE), n1);