NDIRECT            29 kernel/file.h    uint addrs[NDIRECT+1];
NDIRECT           388 kernel/fs.c      if(bn < NDIRECT){
NDIRECT           397 kernel/fs.c      bn -= NDIRECT;
NDIRECT           401 kernel/fs.c        if((addr = ip->addrs[NDIRECT]) == 0){
NDIRECT           405 kernel/fs.c          ip->addrs[NDIRECT] = addr;
NDIRECT           432 kernel/fs.c      for(i = 0; i < NDIRECT; i++){
NDIRECT           439 kernel/fs.c      if(ip->addrs[NDIRECT]){
NDIRECT           440 kernel/fs.c        bp = bread(ip->dev, ip->addrs[NDIRECT]);
NDIRECT           447 kernel/fs.c        bfree(ip->dev, ip->addrs[NDIRECT]);
NDIRECT           448 kernel/fs.c        ip->addrs[NDIRECT] = 0;
NDIRECT            29 kernel/fs.h    #define MAXFILE (NDIRECT + NINDIRECT)
NDIRECT            38 kernel/fs.h      uint addrs[NDIRECT+1];   // Data block addresses
NDIRECT           270 mkfs/mkfs.c        if(fbn < NDIRECT){
NDIRECT           276 mkfs/mkfs.c          if(xint(din.addrs[NDIRECT]) == 0){
NDIRECT           277 mkfs/mkfs.c            din.addrs[NDIRECT] = xint(freeblock++);
NDIRECT           279 mkfs/mkfs.c          rsect(xint(din.addrs[NDIRECT]), (char*)indirect);
NDIRECT           280 mkfs/mkfs.c          if(indirect[fbn - NDIRECT] == 0){
NDIRECT           281 mkfs/mkfs.c            indirect[fbn - NDIRECT] = xint(freeblock++);
NDIRECT           282 mkfs/mkfs.c            wsect(xint(din.addrs[NDIRECT]), (char*)indirect);
NDIRECT           284 mkfs/mkfs.c          x = xint(indirect[fbn-NDIRECT]);