NDIRECT 25 file.h uint addrs[NDIRECT+1]; NDIRECT 378 fs.c if(bn < NDIRECT){ NDIRECT 383 fs.c bn -= NDIRECT; NDIRECT 387 fs.c if((addr = ip->addrs[NDIRECT]) == 0) NDIRECT 388 fs.c ip->addrs[NDIRECT] = addr = balloc(ip->dev); NDIRECT 414 fs.c for(i = 0; i < NDIRECT; i++){ NDIRECT 421 fs.c if(ip->addrs[NDIRECT]){ NDIRECT 422 fs.c bp = bread(ip->dev, ip->addrs[NDIRECT]); NDIRECT 429 fs.c bfree(ip->dev, ip->addrs[NDIRECT]); NDIRECT 430 fs.c ip->addrs[NDIRECT] = 0; NDIRECT 26 fs.h #define MAXFILE (NDIRECT + NINDIRECT) NDIRECT 35 fs.h uint addrs[NDIRECT+1]; // Data block addresses NDIRECT 271 mkfs.c if(fbn < NDIRECT){ NDIRECT 277 mkfs.c if(xint(din.addrs[NDIRECT]) == 0){ NDIRECT 278 mkfs.c din.addrs[NDIRECT] = xint(freeblock++); NDIRECT 280 mkfs.c rsect(xint(din.addrs[NDIRECT]), (char*)indirect); NDIRECT 281 mkfs.c if(indirect[fbn - NDIRECT] == 0){ NDIRECT 282 mkfs.c indirect[fbn - NDIRECT] = xint(freeblock++); NDIRECT 283 mkfs.c wsect(xint(din.addrs[NDIRECT]), (char*)indirect); NDIRECT 285 mkfs.c x = xint(indirect[fbn-NDIRECT]);