Searched refs:NDADDR (Results 1 - 25 of 42) sorted by relevance

12

/freebsd-10.0-release/sys/ufs/ufs/
H A Ddinode.h122 #define NDADDR 12 /* Direct addresses in inode. */ macro
146 ufs2_daddr_t di_db[NDADDR]; /* 112: Direct disk blocks. */
179 ufs1_daddr_t di_db[NDADDR]; /* 40: Direct disk blocks. */
H A Dufs_bmap.c148 if (bn >= 0 && bn < NDADDR) {
179 for (++bn; bn < NDADDR && *runp < maxrun &&
327 /* The first NDADDR blocks are direct blocks. */
328 if (bn < NDADDR)
337 for (blockcnt = 1, i = NIADDR, bn -= NDADDR;; i--, bn -= blockcnt) {
/freebsd-10.0-release/usr.sbin/makefs/ffs/
H A Dufs_bmap.c85 assert (bn >= NDADDR);
94 bn -= NDADDR;
H A Dffs_balloc.c110 if (lastlbn < NDADDR && lastlbn < lbn) {
120 * The first NDADDR blocks are direct blocks
123 if (lbn < NDADDR) {
361 if (lastlbn < NDADDR && lastlbn < lbn) {
371 * The first NDADDR blocks are direct blocks
374 if (lbn < NDADDR) {
/freebsd-10.0-release/sys/fs/ext2fs/
H A Dinode.h53 #define NDADDR 12 /* Direct addresses in inode. */ macro
109 uint32_t i_db[NDADDR]; /* Direct disk blocks. */
H A Dext2_inode.c117 uint32_t oldblks[NDADDR + NIADDR], newblks[NDADDR + NIADDR];
217 lastiblock[SINGLE] = lastblock - NDADDR;
233 for (i = NDADDR - 1; i > lastblock; i--)
255 indir_lbn[SINGLE] = -NDADDR;
279 for (i = NDADDR - 1; i > lastblock; i--) {
324 if (newblks[NDADDR + level] != oip->i_ib[level])
326 for (i = 0; i < NDADDR; i++)
H A Dext2_bmap.c186 for (++bn; bn < NDADDR && *runp < maxrun &&
307 /* The first NDADDR blocks are direct blocks. */
308 if (bn < NDADDR)
317 for (blockcnt = 1, i = NIADDR, bn -= NDADDR;; i--, bn -= blockcnt) {
H A Dext2_inode_cnv.c121 for(i = 0; i < NDADDR; i++)
165 for(i = 0; i < NDADDR; i++)
/freebsd-10.0-release/sys/ufs/ffs/
H A Dffs_snapshot.c332 for (blkno = NDADDR; blkno < numblks; blkno += NINDIR(fs)) {
578 if (loc < NDADDR) {
818 for (blockno = 0; blockno < NDADDR; blockno++) {
925 if (base < NDADDR) {
926 for ( ; loc < NDADDR; loc++) {
940 indiroff = (base + loc - NDADDR) % NINDIR(fs);
1012 if (lbn < NDADDR) {
1023 indiroff = (lbn - NDADDR) % NINDIR(fs);
1049 bzero(&dip->di_db[0], (NDADDR + NIADDR) * sizeof(ufs1_daddr_t));
1057 &cancelip->i_din1->di_db[NDADDR], f
[all...]
H A Dffs_inode.c182 ufs2_daddr_t oldblks[NDADDR + NIADDR], newblks[NDADDR + NIADDR];
382 if (DOINGSOFTDEP(vp) && lbn < NDADDR &&
410 lastiblock[SINGLE] = lastblock - NDADDR;
421 oldblks[NDADDR + level] = DIP(ip, i_ib[level]);
427 for (i = 0; i < NDADDR; i++) {
441 for (i = 0; i < NDADDR; i++) {
446 newblks[NDADDR + i] = DIP(ip, i_ib[i]);
447 DIP_SET(ip, i_ib[i], oldblks[NDADDR + i]);
459 indir_lbn[SINGLE] = -NDADDR;
[all...]
H A Dffs_balloc.c136 if (lastlbn < NDADDR && lastlbn < lbn) {
162 * The first NDADDR blocks are direct blocks
164 if (lbn < NDADDR) {
264 softdep_setup_allocdirect(ip, NDADDR + indirs[0].in_off,
382 if (pref == 0 || (lbn > NDADDR && fs->fs_metaspace != 0))
694 if (lastlbn < NDADDR && lastlbn < lbn) {
721 * The first NDADDR blocks are direct blocks
723 if (lbn < NDADDR) {
826 softdep_setup_allocdirect(ip, NDADDR + indirs[0].in_off,
945 if (pref == 0 || (lbn > NDADDR
[all...]
H A Dfs.h578 /* Use this only when `blk' is known to be small, e.g., < NDADDR. */
611 (((lbn) >= NDADDR || (ip)->i_size >= smalllblktosize(fs, (lbn) + 1)) \
615 (((lbn) >= NDADDR || (size) >= ((lbn) + 1) << (fs)->fs_bshift) \
625 * Indirect lbns are aligned on NDADDR addresses where single indirects
/freebsd-10.0-release/sbin/fsck_ffs/
H A Dinode.c81 for (i = 0; i < NDADDR; i++) {
118 remsize = DIP(&dino, di_size) - sblock.fs_bsize * NDADDR;
351 NDADDR * sizeof(ufs2_daddr_t)) ||
373 if (ndb > NDADDR) {
374 j = ndb - NDADDR;
377 ndb += NDADDR;
381 for (j = ndb; ndb < NDADDR && j < NDADDR; j++)
384 for (j = 0, ndb -= NDADDR; ndb > 0; j++)
452 if (howmany(DIP(dp, di_size), sblock.fs_bsize) > NDADDR)
[all...]
H A Dpass1.c251 NDADDR * sizeof(ufs1_daddr_t)) ||
257 NDADDR * sizeof(ufs2_daddr_t)) ||
325 if (ndb > NDADDR) {
326 j = ndb - NDADDR;
329 ndb += NDADDR;
333 for (j = ndb; ndb < NDADDR && j < NDADDR; j++)
340 for (j = 0, ndb -= NDADDR; ndb > 0; j++)
H A Dpass2.c186 i < (inp->i_numblks<NDADDR ? inp->i_numblks : NDADDR);
189 if (inp->i_numblks > NDADDR)
191 DIP_SET(dp, di_ib[i], inp->i_blks[NDADDR + i]);
/freebsd-10.0-release/usr.sbin/makefs/
H A Dmakefs.h256 #define MAXSYMLINKLEN_UFS1 ((NDADDR + NIADDR) * sizeof(ufs1_daddr_t))
257 #define MAXSYMLINKLEN_UFS2 ((NDADDR + NIADDR) * sizeof(ufs2_daddr_t))
/freebsd-10.0-release/sys/boot/common/
H A Dufsread.c254 if (lbn < NDADDR) {
256 } else if (lbn < NDADDR + NINDIR(&fs)) {
259 u = (u_int)(lbn - NDADDR) / n * DBPERVBLK;
266 n = (lbn - NDADDR) & (n - 1);
/freebsd-10.0-release/sbin/fsdb/
H A Dfsdbutil.c295 for (i = 0; i < NDADDR && i < ndb; i++) {
301 if (ndb <= NDADDR) {
309 if (ndb <= NDADDR)
/freebsd-10.0-release/sys/fs/nandfs/
H A Dbmap.c424 indir_lbn[SINGLE] = -NDADDR;
484 i = NDADDR - 1;
514 max = NDADDR;
559 /* The first NDADDR blocks are direct blocks. */
560 if (bn < NDADDR)
569 for (blockcnt = 1, i = NIADDR, bn -= NDADDR;; i--, bn -= blockcnt) {
H A Dnandfs_fs.h59 #define NDADDR 12 /* Direct addresses in inode. */ macro
78 nandfs_daddr_t i_db[NDADDR]; /* 64: Direct disk blocks. */
/freebsd-10.0-release/sbin/growfs/
H A Ddebug.c696 for (ictr = 0; ictr < MIN(NDADDR, remaining_blocks); ictr++) {
700 remaining_blocks -= NDADDR;
773 for (ictr = 0; ictr < MIN(NDADDR, remaining_blocks); ictr++) {
777 remaining_blocks -= NDADDR;
/freebsd-10.0-release/sbin/dump/
H A Dtraverse.c121 if (DIP(dp, di_size) > sblock->fs_bsize * NDADDR) {
124 howmany(sizeest - NDADDR * sblock->fs_bsize / TP_BSIZE,
287 for (ret = 0, i = 0; filesize > 0 && i < NDADDR; i++) {
559 if (DIP(dp, di_size) > NDADDR * sblock->fs_bsize) {
560 cnt = NDADDR * sblock->fs_frag;
570 if ((size = DIP(dp, di_size) - NDADDR * sblock->fs_bsize) <= 0)
/freebsd-10.0-release/lib/libstand/
H A Dext2fs.c133 #define NDADDR 12 /* # of direct blocks */ macro
165 (((lbn) >= NDADDR || (dip)->di_size >= smalllblktosize(fs, (lbn) + 1)) \
278 u_int32_t di_db[NDADDR]; /* direct blocks */
612 * di_db[0..NDADDR-1] hold block numbers for blocks
613 * 0..NDADDR-1
617 * NDADDR .. NDADDR + NINDIR(fs)-1
621 * NDADDR + NINDIR(fs) ..
622 * NDADDR + NINDIR(fs) + NINDIR(fs)**2 - 1
627 * NDADDR
[all...]
/freebsd-10.0-release/sbin/tunefs/
H A Dtunefs.c685 if ((off_t)dp1->di_size >= lblktosize(&sblock, NDADDR)) {
689 for (i = 0; i < NDADDR; i++) {
697 if ((off_t)dp2->di_size >= lblktosize(&sblock, NDADDR)) {
701 for (i = 0; i < NDADDR; i++) {
1030 for (i = 0; i < NDADDR && resid; i++, resid--) {
/freebsd-10.0-release/usr.sbin/quot/
H A Dquot.c173 if (lblkno(super,sz) >= NDADDR) {
183 if (lblkno(super,sz) >= NDADDR) {
186 sz = (sz - NDADDR + NINDIR(super) - 1) / NINDIR(super);

Completed in 261 milliseconds

12