Searched refs:ndb (Results 1 - 7 of 7) sorted by relevance

/openbsd-current/sbin/fsck_ext2fs/
H A Dpass1.c126 int ndb, j; local
196 ndb = howmany(inosize(dp), sblock.e2fs_bsize);
197 if (ndb < 0) {
199 printf("bad size %llu ndb %d:",
200 (unsigned long long)inosize(dp), ndb);
204 ndb++;
207 * Fake ndb value so direct/indirect block checks below
212 ndb = howmany(inosize(dp), sizeof(u_int32_t));
213 if (ndb > NDADDR) {
214 j = ndb
[all...]
H A Dinode.c118 long ret, n, ndb; local
133 ndb = howmany(inosize(&dino), sblock.e2fs_bsize);
135 ap++,ndb--) {
138 if (idesc->id_type == DATA && ndb > 0) {
/openbsd-current/sbin/fsck_ffs/
H A Dpass1.c182 int ndb, j; local
230 ndb = lndb > (u_int64_t)INT_MAX ? -1 : (int)lndb;
231 if (ndb < 0) {
233 printf("bad size %llu ndb %d:",
234 (unsigned long long)DIP(dp, di_size), ndb);
238 ndb++;
241 * Fake ndb value so direct/indirect block checks below
246 ndb = howmany(DIP(dp, di_size),
249 ndb = howmany(DIP(dp, di_size),
251 if (ndb > NDADD
[all...]
H A Dinode.c61 long ret, ndb, offset; local
80 ndb = howmany(DIP(&dino, di_size), sblock.fs_bsize);
82 if (--ndb == 0 && (offset = blkoff(&sblock,
89 if (idesc->id_type == DATA && ndb >= 0) {
/openbsd-current/sys/arch/alpha/stand/
H A Dinstallboot.c320 int i, fd, ndb; local
390 ndb = howmany(ip1->di_size, fs->fs_bsize);
394 ndb = howmany(ip2->di_size, fs->fs_bsize);
399 if (ndb > max_block_count)
410 bbinfop->nblocks = ndb;
416 for (i = 0; i < NDADDR && *ap1 && ndb; i++, ap1++, ndb--) {
424 for (i = 0; i < NDADDR && *ap2 && ndb; i++, ap2++, ndb--) {
434 if (ndb
[all...]
/openbsd-current/usr.sbin/netgroup_mkdb/
H A Dnetgroup_mkdb.c91 DB *db, *ndb, *hdb, *udb; local
124 ndb = ng_load(fname);
128 ng_dump(ndb);
133 hdb = ng_reverse(ndb, offsetof(struct netgroup, ng_host));
142 udb = ng_reverse(ndb, offsetof(struct netgroup, ng_user));
157 ng_write(db, ndb, _NG_KEYBYNAME);
/openbsd-current/usr.sbin/installboot/
H A Di386_installboot.c735 int ndb; local
816 ndb = howmany(ip2->di_size, fs->fs_bsize);
822 ndb = howmany(ip1->di_size, fs->fs_bsize);
827 if (ndb <= 0)
855 sym_set_value(pbr_symbols, "_nblocks", ndb);
860 boot, ndb, fs->fs_bsize);

Completed in 99 milliseconds