NDIRECT 24 file.h uint addrs[NDIRECT+1]; NDIRECT 362 fs.c if(bn < NDIRECT){ NDIRECT 367 fs.c bn -= NDIRECT; NDIRECT 371 fs.c if((addr = ip->addrs[NDIRECT]) == 0) NDIRECT 372 fs.c ip->addrs[NDIRECT] = addr = balloc(ip->dev); NDIRECT 398 fs.c for(i = 0; i < NDIRECT; i++){ NDIRECT 405 fs.c if(ip->addrs[NDIRECT]){ NDIRECT 406 fs.c bp = bread(ip->dev, ip->addrs[NDIRECT]); NDIRECT 413 fs.c bfree(ip->dev, ip->addrs[NDIRECT]); NDIRECT 414 fs.c ip->addrs[NDIRECT] = 0; NDIRECT 25 fs.h #define MAXFILE (NDIRECT + NINDIRECT) NDIRECT 34 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]);