/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_alloc.c | 109 daddr_t bno; in alloc() local 148 *bnp = bno; in alloc() 185 daddr_t bno; in realloccg() local 226 *bnp = bno; in realloccg() 642 if (bno < 0 && (bno % fs->fs_frag == 0) && bno != UFS_HOLE) { in free() 643 bno = -bno; in free() 673 bno = dtogd(fs, bno); in free() 700 bbase = bno - fragnum(fs, bno); in free() 901 long bno; in fragextend() local 1235 bno = blkstofrags(fs, (bno + i)); in alloccgblk() [all …]
|
H A D | lufs.c | 275 daddr_t bno; /* in disk blocks */ in lufs_snarf() local 333 bno = nebp->ic_extents[0].ic_pbno; in lufs_snarf() 352 tbp->b_blkno = bno; in lufs_snarf() 504 daddr_t bno, in lufs_initialize() argument 698 bno = fsbtodb(fs, fno); in lufs_alloc() 712 logbno = bno; in lufs_alloc() 714 logbno = dbtofsb(fs, bno); in lufs_alloc() 723 bno = fsbtodb(fs, fno); in lufs_alloc() 727 ep->pbno = (uint32_t)bno; in lufs_alloc() 743 bno = fsbtodb(fs, fno); in lufs_alloc() [all …]
|
H A D | ufs_thread.c | 1010 daddr_t bno; in ufs_thread_reclaim() local 1069 bno = fsbtodb(fs, itod(fs, ino)); in ufs_thread_reclaim() 1070 if ((bp == 0) || (bp->b_blkno != bno)) { in ufs_thread_reclaim() 1074 ufsvfsp->vfs_dev, bno, fs->fs_bsize); in ufs_thread_reclaim()
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | exrecover.c | 613 int bno, cnt, bad, was; in scrapbad() local 619 bno = (maxt >> OFFBTS) & BLKMSK; in scrapbad() 629 while (bno > 0) { in scrapbad() 641 bno--; in scrapbad() 781 int bno, off; local 785 bno = (atl >> OFFBTS) & BLKMSK; 787 fprintf(stderr,"GETBLOCK: BLK %d\n",bno); 790 if (bno >= NMBLKS) 793 if (bno == iblock) 795 iblock = bno; [all …]
|
H A D | ex_temp.c | 214 int bno, off; in getblock() local 219 bno = (atl >> OFFBTS) & BLKMSK; in getblock() 221 if (bno >= NMBLKS) { in getblock() 236 if (bno == iblock) { in getblock() 241 if (bno == iblock2) { in getblock() 246 if (bno == oblock) in getblock() 260 iblock2 = bno; in getblock() 261 blkio(bno, ibuff2, read); in getblock() 276 iblock = bno; in getblock() 277 blkio(bno, ibuff, read); in getblock() [all …]
|
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_alloc.c | 283 for (bno = loop_begin + HDR_BLKS; bno + blkcount < loop_end; ) { in ud_alloc_space_bmap() 296 bno / bb_count; in ud_alloc_space_bmap() 313 temp = eblk - bno; in ud_alloc_space_bmap() 325 bno + temp - HDR_BLKS; in ud_alloc_space_bmap() 336 bno += new_size; in ud_alloc_space_bmap() 346 bno &= ~3; in ud_alloc_space_bmap() 348 bno += 8; in ud_alloc_space_bmap() 349 bno += skip[addr[(bno - bblk) >> 3]]; in ud_alloc_space_bmap() 351 bno++; in ud_alloc_space_bmap() 355 bno = (bno + CLSTR_MASK) & ~CLSTR_MASK; in ud_alloc_space_bmap() [all …]
|
H A D | udf_bmap.c | 129 daddr_t bno; in ud_bmap_read() local 159 bno = ud_xlate_to_daddr(ip->i_udf, in ud_bmap_read() 163 *bnp = bno << l2d; in ud_bmap_read() 711 daddr_t bno; in ud_read_next_cont() local 716 bno = ud_xlate_to_daddr(ip->i_udf, cont->ib_prn, cont->ib_block, in ud_read_next_cont() 718 bp = ud_bread(ip->i_dev, bno << ip->i_udf->udf_l2d_shift, in ud_read_next_cont() 1252 uint32_t bno, dummy; in ud_zero_it() local 1264 bno = ud_xlate_to_daddr(udf_vfsp, in ud_zero_it() 1275 bp->b_blkno = bno << udf_vfsp->udf_l2d_shift; in ud_zero_it()
|
/illumos-gate/usr/src/boot/i386/isoboot/ |
H A D | cd9660read.c | 56 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE) argument 232 daddr_t bno, boff; in cd9660_lookup() local 236 for (bno = 16; ; bno++) { in cd9660_lookup() 237 rc = read_iso_block(blkbuf, bno); in cd9660_lookup() 257 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_lookup() 264 rc = read_iso_block(blkbuf, bno + boff); in cd9660_lookup()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | cd9660.c | 117 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE) argument 290 daddr_t bno, boff; in cd9660_open() local 300 for (bno = 16; ; bno++) { in cd9660_open() 302 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), in cd9660_open() 328 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open() 337 cdb2devb(bno + boff), in cd9660_open() 417 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open() 419 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), in cd9660_open()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fs.h | 389 #define cbtocylno(fs, bno) \ argument 390 ((bno) * NSPF(fs) / (fs)->fs_spc) 391 #define cbtorpos(fs, bno) \ argument 392 (((bno) * NSPF(fs) % (fs)->fs_spc / (fs)->fs_nsect * (fs)->fs_trackskew + \ 393 (bno) * NSPF(fs) % (fs)->fs_spc % (fs)->fs_nsect * (fs)->fs_interleave) % \
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | ufs_fs.h | 600 #define cbtocylno(fs, bno) \ argument 601 ((bno) * NSPF(fs) / (fs)->fs_spc) 604 #define cbtorpos(ufsvfsp, bno) \ argument 605 ((((bno) * NSPF((ufsvfsp)->vfs_fs) % (ufsvfsp)->vfs_fs->fs_spc) % \ 609 #define cbtorpos(fs, bno) \ argument 610 ((((bno) * NSPF(fs) % (fs)->fs_spc) % \
|
H A D | udf_inode.h | 552 #define UD_INOHASH(dev, bno) (hash2ints((int)dev, (int)bno) & UD_HASH_SZ - 1) argument 554 #define UD_INOHASH(dev, bno) (hash2ints((int)dev, (int)bno) % UD_HASH_SZ)
|
H A D | ufs_trans.h | 381 #define TRANS_MATA_ALLOC(ufsvfsp, ip, bno, size, zero) \ argument 383 ufs_trans_mata_alloc(ufsvfsp, ip, bno, size, zero) 405 #define TRANS_MATA_ALLOC(ufsvfsp, ip, bno, size, zero) argument
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsirand/ |
H A D | fsirand.c | 63 int bno; in main() local 136 bno = itod(fs, inum); in main() 137 seekaddr = (offset_t)fsbtodb(fs, bno) * DEV_BSIZE; in main()
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsdb/ |
H A D | fsdb.c | 800 uint32_t desc_type, bno, len; in get_blkno() local 848 bno = SWAP_32(sad->sad_ext_loc); in get_blkno() 853 bno = SWAP_32(lad->lad_ext_loc); in get_blkno() 858 bno = 0; in get_blkno() 868 de[d].blkno = bno; in get_blkno() 879 bno = de[i].blkno + ((off - b_off) >> l2b); in get_blkno() 881 udh, de[i].prn, bno)) == 0) { in get_blkno() 899 uint32_t bno, tcount; in read_file() local 903 if (get_blkno(inode, &bno, off) != 0) { in read_file() 906 if ((addr = getblk(bno << l2b)) == NULL) { in read_file() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/ncheck/ |
H A D | ncheck.c | 122 void bread(diskaddr_t bno, char *buf, int cnt); 579 bread(diskaddr_t bno, char *buf, int cnt) in bread() argument 584 if (llseek(fi, (offset_t)bno * DEV_BSIZE, 0) == -1) { in bread() 586 (offset_t)bno * DEV_BSIZE); in bread() 600 bno, cnt, got); in bread()
|
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/ |
H A D | mkfs.c | 88 static void rdfs(daddr_t bno, int size, char *bf); 89 static void wtfs(daddr_t bno, int size, char *bf); 1132 rdfs(daddr_t bno, int size, char *bf) in rdfs() argument 1136 if (llseek(fsi, (offset_t)bno * sectorsize, 0) < 0) { in rdfs() 1140 bno, strerror(saverr)); in rdfs() 1148 bno, strerror(saverr)); in rdfs() 1157 wtfs(daddr_t bno, int size, char *bf) in wtfs() argument 1164 if (llseek(fso, (offset_t)bno * sectorsize, 0) < 0) { in wtfs() 1168 bno, strerror(saverr)); in wtfs() 1178 bno, strerror(saverr)); in wtfs()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/ |
H A D | mkfs.c | 330 diskaddr_t bno; member 2715 bno++; in initcg() 3125 transp->bno); in wait_for_write() 3228 bno, strerror(saverr)); in rdfs() 3237 bno, strerror(saverr)); in rdfs() 3241 n, size, bno); in rdfs() 3266 bno, strerror(saverr)); in wtfs() 3281 n, size, bno); in wtfs() 3310 transp->bno = bno; in awtfs() 3388 n, size, bno); in wtfs_breakup() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quot/ |
H A D | quot.c | 380 bread(int fd, diskaddr_t bno, char *buf, int cnt) in bread() argument 384 if (llseek(fd, (offset_t)(bno * DEV_BSIZE), SEEK_SET) < 0) { in bread() 392 (void) fprintf(stderr, "quot: read error at block %lld\n", bno); in bread()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | utilities.c | 1155 diskaddr_t bno; in updateclean() local 1315 bno = sblk.b_bno; in updateclean() 1318 sblkoff = ldbtob(bno); in updateclean() 1324 (longlong_t)bno, strerror(errno)); in updateclean() 1329 report_io_prob("READ FROM", bno, size, io_res); in updateclean() 1342 (longlong_t)bno, strerror(errno)); in updateclean() 1347 report_io_prob("WRITE TO", bno, size, io_res); in updateclean() 1378 report_io_prob(caddr_t what, diskaddr_t bno, size_t expected, ssize_t failure) in report_io_prob() argument 1382 what, (int)bno, strerror(errno)); in report_io_prob() 1385 what, (int)bno); in report_io_prob() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/df/ |
H A D | df.c | 941 bread(char *file, int fi, daddr_t bno, char *buf, int cnt) in bread() argument 945 (void) llseek(fi, (offset_t)bno * DEV_BSIZE, 0); in bread() 951 (void) fprintf(stderr, "bno = %ld\n", bno); in bread() 956 "bno = %ld expected = %d count = %d\n", bno, cnt, n); in bread()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/ff/ |
H A D | ff.c | 139 void bread(diskaddr_t bno, char *buf, int cnt); 640 bread(diskaddr_t bno, char *buf, int cnt) in bread() argument 646 offset = (offset_t)bno * DEV_BSIZE; in bread() 660 "ff: (wanted %d got %d blk %lld)\n", cnt, got, bno); in bread()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/tunefs/ |
H A D | tunefs.c | 411 bread(diskaddr_t bno, char *buf, int cnt) in bread() argument 415 if (llseek(fi, (offset_t)bno * DEV_BSIZE, 0) < 0) { in bread()
|
/illumos-gate/usr/src/cmd/ed/ |
H A D | ed.c | 1734 int bno, off; in getblock() local 1738 bno = atl >> 8; in getblock() 1742 if (bno >= 65535) { in getblock() 1747 if (bno == iblock) { in getblock() 1751 if (bno == oblock) in getblock() 1761 iblock = bno; in getblock() 1762 blkio(bno, ibuff, read); in getblock() 1781 oblock = bno; in getblock()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/ |
H A D | newfs.c | 1085 int bno, inum; in notrand() local 1102 bno = itod(fs, inum); in notrand() 1103 seekaddr = (offset_t)fsbtodb(fs, bno) * DEV_BSIZE; in notrand()
|