Lines Matching defs:ndb
243 ufs2_daddr_t ndb;
306 ndb = howmany(DIP(dp, di_size), sblock.fs_bsize);
307 if (ndb < 0) {
309 printf("bad size %ju ndb %ju:",
310 (uintmax_t)DIP(dp, di_size), (uintmax_t)ndb);
314 ndb++;
317 * Fake ndb value so direct/indirect block checks below
322 ndb = howmany(DIP(dp, di_size),
325 ndb = howmany(DIP(dp, di_size),
327 if (ndb > NDADDR) {
328 j = ndb - NDADDR;
329 for (ndb = 1; j > 1; j--)
330 ndb *= NINDIR(&sblock);
331 ndb += NDADDR;
335 for (j = ndb; ndb < NDADDR && j < NDADDR; j++)
342 for (j = 0, ndb -= NDADDR; ndb > 0; j++)
343 ndb /= NINDIR(&sblock);
378 ndb = howmany(dp->dp2.di_extsize, sblock.fs_bsize);
380 if (--ndb == 0 &&