Home
last modified time | relevance | path

Searched refs:fsbtodb (Results 1 – 25 of 46) sorted by relevance

12

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_ufs.c124 ok = devread(fsbtodb(SUPERBLOCK, dblk), off, size, buf); in ufs_read()
156 dblk = fsbtodb(SUPERBLOCK, itod(SUPERBLOCK, inode)); in openi()
198 blkno = fsbtodb(SUPERBLOCK, nb); in sbmap()
211 blkno = fsbtodb(SUPERBLOCK, nb); in sbmap()
251 dblk = fsbtodb(SUPERBLOCK, dbn); in dlook()
H A Dfsys_ffs.c108 if ((bnum = fsbtodb (SUPERBLOCK, INODE->i_ib[0])) != mapblock in block_map()
165 devread (fsbtodb (SUPERBLOCK, map), off, size, buf); in ffs_read()
194 if (!devread (fsbtodb (SUPERBLOCK, itod (SUPERBLOCK, ino)), in ffs_dir()
256 || !devread (fsbtodb (SUPERBLOCK, map), 0, in ffs_dir()
H A Dfsys_ufs2.c133 if ((bnum = fsbtodb (SUPERBLOCK, INODE_UFS2->di_ib[0])) != mapblock in block_map()
190 devread (fsbtodb (SUPERBLOCK, map), off, size, buf); in ufs2_read()
219 if (!devread (fsbtodb (SUPERBLOCK, ino_to_fsba (SUPERBLOCK, ino)), in ufs2_dir()
277 || !devread (fsbtodb (SUPERBLOCK, map), 0, in ufs2_dir()
H A Dufs.h220 #define fsbtodb(fs, b) (((grub_daddr32_t)(b)) << (fs)->fs_fsbtodb) macro
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_subr.c600 blkflush(ip->i_dev, (daddr_t)fsbtodb(fs, ip->i_ib[0])); in ufs_sync_indir()
608 blkflush(ip->i_dev, (daddr_t)fsbtodb(fs, blkno)); in ufs_sync_indir()
613 bp = UFS_BREAD(ufsvfsp, ip->i_dev, (daddr_t)fsbtodb(fs, blkno), bsize); in ufs_sync_indir()
626 blkflush(ip->i_dev, (daddr_t)fsbtodb(fs, blkno)); in ufs_sync_indir()
635 bp = UFS_BREAD(ufsvfsp, ip->i_dev, (daddr_t)fsbtodb(fs, blkno), bsize); in ufs_sync_indir()
648 blkflush(ip->i_dev, (daddr_t)fsbtodb(fs, indirect_blkno)); in ufs_sync_indir()
650 (daddr_t)fsbtodb(fs, indirect_blkno), bsize); in ufs_sync_indir()
663 blkflush(ip->i_dev, (daddr_t)fsbtodb(fs, blkno)); in ufs_sync_indir()
728 blkflush(ip->i_dev, fsbtodb(fs, nb)); in ufs_indirblk_sync()
734 ip->i_dev, fsbtodb(fs, ob), fs->fs_bsize); in ufs_indirblk_sync()
[all …]
H A Dufs_bmap.c134 *(bnp) = fsbtodb(fs, *dp) + btodb(boff); \
267 ip->i_dev, fsbtodb(fs, ob), fs->fs_bsize); in bmap_read()
653 bp = UFS_GETBLK(ufsvfsp, dev, fsbtodb(fs, nb), bsize); in bmap_write()
696 bp = UFS_BREAD(ufsvfsp, ip->i_dev, fsbtodb(fs, ob), bsize); in bmap_write()
782 ufsvfsp, dev, fsbtodb(fs, nb), bsize); in bmap_write()
847 ip->i_dev, fsbtodb(fs, ob), bsize); in bmap_write()
1092 fsbtodb(ufsvfsp->vfs_fs, table[i].owner_block), in ufs_undo_allocation()
1275 if ((bp[j-1] == NULL) || bp[j-1]->b_blkno != fsbtodb(fs, ob)) { in bmap_find()
1278 bp[j-1] = UFS_BREAD(ufsvfsp, dev, fsbtodb(fs, ob), bs); in bmap_find()
1396 ip->i_dev, fsbtodb(fs, ob), fs->fs_bsize); in bmap_set_bn()
H A Dufs_trans.c223 ldbtob(fsbtodb(fs, fs->fs_csaddr)), fs->fs_cssize, in ufs_trans_push_si()
339 ldbtob(fsbtodb(fs, cgtod(fs, i))), fs->fs_cgsize); in ufs_trans_mata_mount()
341 ldbtob(fsbtodb(fs, itod(fs, ino))), in ufs_trans_mata_mount()
362 TRANS_MATAADD(ufsvfsp, ldbtob(fsbtodb(fs, fs->fs_csaddr)), in ufs_trans_mata_si()
391 TRANS_MATAADD(ufsvfsp, ldbtob(fsbtodb(fs, frag)), nb); in ufs_trans_mata_direct()
413 bp = UFS_BREAD(ufsvfsp, ip->i_dev, fsbtodb(fs, frag), fs->fs_bsize); in ufs_trans_mata_indir()
478 TRANS_MATAADD(ufsvfsp, ldbtob(fsbtodb(fs, frag)), nb); in ufs_trans_mata_alloc()
H A Dufs_alloc.c655 bp = UFS_BREAD(ufsvfsp, ip->i_dev, (daddr_t)fsbtodb(fs, cgtod(fs, cg)), in free()
665 TRANS_CANCEL(ufsvfsp, ldbtob(fsbtodb(fs, bno)), size, flags); in free()
667 TRANS_MATA_FREE(ufsvfsp, ldbtob(fsbtodb(fs, bno)), size); in free()
795 bp = UFS_BREAD(ufsvfsp, ip->i_dev, (daddr_t)fsbtodb(fs, cgtod(fs, cg)), in ufs_ifree()
914 bp = UFS_BREAD(ufsvfsp, ip->i_dev, (daddr_t)fsbtodb(fs, cgtod(fs, cg)), in fragextend()
931 if ((TRANS_ISCANCEL(ufsvfsp, ldbtob(fsbtodb(fs, bprev + i)), in fragextend()
1002 bp = UFS_BREAD(ufsvfsp, ip->i_dev, (daddr_t)fsbtodb(fs, cgtod(fs, cg)), in alloccg()
1261 if (TRANS_ISCANCEL(ufsvfsp, ldbtob(fsbtodb(fs, frag)), fs->fs_bsize)) in alloccgblk()
1302 bp = UFS_BREAD(ufsvfsp, ip->i_dev, (daddr_t)fsbtodb(fs, cgtod(fs, cg)), in ialloccg()
1457 ldbtob(fsbtodb(fs, (cfrag+bno))), in mapsearch()
[all …]
H A Dlufs.c698 bno = fsbtodb(fs, fno); in lufs_alloc()
723 bno = fsbtodb(fs, fno); in lufs_alloc()
730 ep->nbno = (uint32_t)fsbtodb(fs, fs->fs_frag); in lufs_alloc()
743 bno = fsbtodb(fs, fno); in lufs_alloc()
745 ep->nbno += (uint32_t)(fsbtodb(fs, fs->fs_frag)); in lufs_alloc()
758 nep->nbno = (uint32_t)(fsbtodb(fs, fs->fs_frag)); in lufs_alloc()
H A Dufs_inode.c534 bno = fsbtodb(fs, itod(fs, ino)); in ufs_iget_internal()
886 (daddr_t)fsbtodb(fp, itod(fp, ip->i_number)), in ufs_iupdat()
1023 (daddr_t)fsbtodb(fp, itod(fp, ip->i_number))); in ufs_iupdat()
1080 ip->i_dev, (daddr_t)fsbtodb(fs, bn), (int)fs->fs_bsize); in indirtrunc()
/illumos-gate/usr/src/boot/libsa/
H A Dufs.c161 fsbtodb(fs, ino_to_fsba(fs, inumber)), fs->fs_bsize, in read_inode()
269 fsbtodb(fp->f_fs, ind_block_num), in block_map()
347 fsbtodb(fs, disk_block), in buf_write_file()
366 fsbtodb(fs, disk_block), in buf_write_file()
404 F_READ, fsbtodb(fs, disk_block), in buf_read_file()
637 F_READ, fsbtodb(fs, disk_block), in ufs_open()
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dsetup.c417 if (bread(fsreadfd, main_vdbuf, fsbtodb(avp->avd_main_vdse.ext_loc), in readvolseq()
420 if (bread(fsreadfd, res_vdbuf, fsbtodb(avp->avd_res_vdse.ext_loc), in readvolseq()
504 fsbtodb(lvintblock), lvintlen) != 0) { in readvolseq()
555 if (bread(fsreadfd, (char *)spacep, fsbtodb(part_bmp_loc), in readvolseq()
598 if (bread(fsreadfd, (char *)fileset, fsbtodb(filesetblock + part_start), in readvolseq()
H A Dpass1.c255 fsbtodb(loc + part_start), nb) != 0) { in getallocext()
372 fsbtodb(baseblock + part_start), nb) != 0) { in getdir()
420 fsbtodb(baseblock + part_start), nb) != 0) { in getdir()
587 bwrite(fswritefd, (char *)spacep, fsbtodb(part_bmp_loc), in dofreemap()
613 bwrite(fswritefd, (char *)lvintp, fsbtodb(lvintblock), in dolvint()
H A Dutilities.c295 if (bp->b_bno == fsbtodb(blkno)) in getdatablk()
321 dblk = fsbtodb(blk); in getblk()
H A Dfsck.h202 #define fsbtodb(blkno) ((blkno) * (fsbsize / DEV_BSIZE)) macro
/illumos-gate/usr/src/cmd/fs.d/ufs/ncheck/
H A Dncheck.c323 bread(fsbtodb(&sblock, cgimin(&sblock, c)), (char *)itab, in check()
342 bread(fsbtodb(&sblock, cgimin(&sblock, c)), (char *)itab, in check()
355 bread(fsbtodb(&sblock, cgimin(&sblock, c)), (char *)itab, in check()
508 bread(fsbtodb(&sblock, d), dirp->dbuf, in dreaddir()
620 bread(fsbtodb(&sblock, gip->di_ib[0]), (char *)ibuf, sizeof (ibuf)); in bmap()
/illumos-gate/usr/src/common/fs/
H A Dufsops.c110 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, in openi()
188 fsbtodb(&devp->un_fs.di_fs, in find()
268 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, nb); in sbmap()
347 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, d); in readdir()
395 filep->fi_blocknum = fsbtodb(fs, sbmap(filep, lbn)); in getblock()
460 filep->fi_blocknum = fsbtodb(fs, sbmap(filep, lbn)); in getblock_noopt()
/illumos-gate/usr/src/cmd/fs.d/ufs/ff/
H A Dff.c376 bread(fsbtodb(&sblock, cgimin(&sblock, c)), (char *)itab, in check()
393 bread(fsbtodb(&sblock, cgimin(&sblock, c)), (char *)itab, in check()
405 bread(fsbtodb(&sblock, cgimin(&sblock, c)), (char *)itab, in check()
570 bread(fsbtodb(&sblock, d), dirp->dbuf, in dreaddir()
678 bread(fsbtodb(&sblock, gip->di_ib[0]), (char *)ibuf, sizeof (ibuf)); in bmap()
698 dblk = fsbtodb(&sblock, iblk); in ginode()
/illumos-gate/usr/src/cmd/fs.d/ufs/clri/
H A Dclri.c158 off = fsbtodb(&sblock, itod(&sblock, n)); in main()
183 off = fsbtodb(&sblock, itod(&sblock, n)); in main()
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumptraverse.c310 bread(fsbtodb(sblock, d), (uchar_t *)idblk, (size_t)sblock->fs_bsize); in indir()
416 bread(fsbtodb(sblock, ip->di_db[0]), in lf_dump()
462 bread(fsbtodb(sblock, blk), (uchar_t *)idblk, in lf_dmpindir()
649 bread(fsbtodb(sblock, d), (uchar_t *)dblk, in dsrch()
739 (fsbtodb(sblock, itod(sblock, ino)) + itoo(sblock, ino) / INOPERDB), in getino()
818 if (da >= fsbtodb(sblock, sblock->fs_size)) { in bread()
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c126 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, in openi()
208 fsbtodb(&devp->un_fs.di_fs, in find()
298 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, nb); in sbmap()
427 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, d); in readdir()
485 filep->fi_blocknum = fsbtodb(fs, fsbn); in getblock()
880 fp->fi_blocknum = fsbtodb(&fp->fi_devp->un_fs.di_fs, in boot_ufs_getdents()
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c2110 num = fsbtodb(&sblock, (uint64_t)cgsblock(&sblock, cylno)); in main()
2222 num = fsbtodb(&sblock, (uint64_t)cgsblock(&sblock, cylno)); in main()
2316 awtfs(fsbtodb(&sblock, (uint64_t)cgsblock(&sblock, cylno)), in main()
2335 awtfs(fsbtodb(&sblock, (uint64_t)cgsblock(&sblock, cylno)), in main()
2604 awtfs(fsbtodb(&sblock, (uint64_t)cgimin(&sblock, cylno)), (int)size, in initcg()
2764 awtfs(fsbtodb(&sblock, (uint64_t)cgtod(&sblock, cylno)), in initcg()
2823 wtfs(fsbtodb(&sblock, (uint64_t)node.i_db[0]), (int)node.i_size, buf); in fsinit()
2837 wtfs(fsbtodb(&sblock, (uint64_t)node.i_db[0]), sblock.fs_fsize, buf); in fsinit()
2873 rdfs(fsbtodb(&sblock, (uint64_t)cgtod(&sblock, 0)), sblock.fs_cgsize, in alloc()
2911 wtfs(fsbtodb(&sblock, (uint64_t)cgtod(&sblock, 0)), sblock.fs_cgsize, in alloc()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsirand/
H A Dfsirand.c137 seekaddr = (offset_t)fsbtodb(fs, bno) * DEV_BSIZE; in main()
197 seekaddr = (offset_t)fsbtodb(fs, cgsblock(fs, i)) * DEV_BSIZE; in main()
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dsetup.c583 bflag = fsbtodb(&proto, cgsblock(&proto, cg)); in find_superblock()
691 sblk.b_bno = fsbtodb(&sblock, cgsblock(&sblock, 0)); in find_superblock()
819 fsbtodb(&sblock, sblock.fs_csaddr + j * sblock.fs_frag), in getsummaryinfo()
1248 bwrite(fd, (caddr_t)&sblock, fsbtodb(&sblock, in write_altsb()
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_fs.h527 #define fsbtodb(fs, b) (((daddr_t)(b)) << (fs)->fs_fsbtodb) macro
529 #define fsbtodb(fs, b) (((diskaddr_t)(b)) << (fs)->fs_fsbtodb) macro

12