/titanic_41/usr/src/uts/common/fs/ufs/ |
H A D | ufs_alloc.c | 109 daddr_t bno; in alloc() local 145 bno = (daddr_t)hashalloc(ip, cg, (long)bpref, size, in alloc() 147 if (bno > 0) { in alloc() 148 *bnp = bno; in alloc() 185 daddr_t bno; in realloccg() local 224 bno = fragextend(ip, cg, (long)bprev, osize, nsize); in realloccg() 225 if (bno != 0) { in realloccg() 226 *bnp = bno; in realloccg() 246 bno = (daddr_t)hashalloc(ip, cg, (long)bpref, request, in realloccg() 248 if (bno > 0) { in realloccg() [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() 334 bp = UFS_BREAD(ufsvfsp, ufsvfsp->vfs_dev, bno, DEV_BSIZE); in lufs_snarf() 337 bp = UFS_BREAD(ufsvfsp, ufsvfsp->vfs_dev, bno + 1, DEV_BSIZE); in lufs_snarf() 352 tbp->b_blkno = bno; in lufs_snarf() 504 daddr_t bno, in lufs_initialize() argument 515 bp = UFS_GETBLK(ufsvfsp, ufsvfsp->vfs_dev, bno, dbtob(LS_SECTORS)); in lufs_initialize() 669 daddr_t bno; /* in disk blocks */ in lufs_alloc() local 698 bno = fsbtodb(fs, fno); in lufs_alloc() 700 bp = UFS_BREAD(ufsvfsp, ufsvfsp->vfs_dev, bno, fs->fs_bsize); in lufs_alloc() [all …]
|
H A D | ufs_thread.c | 1008 daddr_t bno; in ufs_thread_reclaim() local 1067 bno = fsbtodb(fs, itod(fs, ino)); in ufs_thread_reclaim() 1068 if ((bp == 0) || (bp->b_blkno != bno)) { in ufs_thread_reclaim() 1072 ufsvfsp->vfs_dev, bno, fs->fs_bsize); in ufs_thread_reclaim()
|
/titanic_41/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() 621 fprintf(stderr, "size %ld, maxt %o, bno %d\n", size, maxt, bno); in scrapbad() 629 while (bno > 0) { in scrapbad() 630 (void)lseek(tfile, (long) BUFSIZE * bno, 0); in scrapbad() 636 fprintf(stderr,"UNENCRYPTED: BLK %d\n",bno); in scrapbad() 641 bno--; in scrapbad() 649 maxt = ((bno << OFFBTS) | (cnt >> SHFT)) & ~1; in scrapbad() 651 fprintf(stderr, "bno %d, cnt %d, maxt %o\n", bno, cnt, maxt); in scrapbad() 781 int bno, off; local [all …]
|
H A D | ex_temp.c | 216 int bno, off; local 221 bno = (atl >> OFFBTS) & BLKMSK; 223 if (bno >= NMBLKS) { 238 if (bno == iblock) { 243 if (bno == iblock2) { 248 if (bno == oblock) 260 iblock2 = bno; 261 blkio(bno, ibuff2, read); 276 iblock = bno; 277 blkio(bno, ibuff, read); [all …]
|
/titanic_41/usr/src/uts/common/fs/udfs/ |
H A D | udf_alloc.c | 236 uint32_t bno, begin, dummy, temp, lbsz, bb_count; in ud_alloc_space_bmap() local 283 for (bno = loop_begin + HDR_BLKS; bno + blkcount < loop_end; ) { in ud_alloc_space_bmap() 291 ((eblk - bno) < blkcount)) { in ud_alloc_space_bmap() 296 bno / bb_count; in ud_alloc_space_bmap() 312 if (blkcount > (eblk - bno)) { in ud_alloc_space_bmap() 313 temp = eblk - bno; in ud_alloc_space_bmap() 318 bno - bblk, temp)) == temp) { in ud_alloc_space_bmap() 319 ud_mark_used(addr, bno - bblk, temp); in ud_alloc_space_bmap() 321 *start_blkno = bno - HDR_BLKS; in ud_alloc_space_bmap() 325 bno + temp - HDR_BLKS; in ud_alloc_space_bmap() [all …]
|
H A D | udf_bmap.c | 131 daddr_t bno; in ud_bmap_read() local 161 bno = ud_xlate_to_daddr(ip->i_udf, in ud_bmap_read() 165 *bnp = bno << l2d; in ud_bmap_read() 713 daddr_t bno; in ud_read_next_cont() local 718 bno = ud_xlate_to_daddr(ip->i_udf, cont->ib_prn, cont->ib_block, in ud_read_next_cont() 720 bp = ud_bread(ip->i_dev, bno << ip->i_udf->udf_l2d_shift, in ud_read_next_cont() 1254 uint32_t bno, dummy; in ud_zero_it() local 1266 bno = ud_xlate_to_daddr(udf_vfsp, in ud_zero_it() 1277 bp->b_blkno = bno << udf_vfsp->udf_l2d_shift; in ud_zero_it()
|
/titanic_41/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) % \
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsirand/ |
H A D | fsirand.c | 65 int bno; in main() local 138 bno = itod(fs, inum); in main() 139 seekaddr = (offset_t)fsbtodb(fs, bno) * DEV_BSIZE; in main()
|
/titanic_41/usr/src/uts/common/sys/fs/ |
H A D | ufs_fs.h | 602 #define cbtocylno(fs, bno) \ argument 603 ((bno) * NSPF(fs) / (fs)->fs_spc) 606 #define cbtorpos(ufsvfsp, bno) \ argument 607 ((((bno) * NSPF((ufsvfsp)->vfs_fs) % (ufsvfsp)->vfs_fs->fs_spc) % \ 611 #define cbtorpos(fs, bno) \ argument 612 ((((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
|
/titanic_41/usr/src/cmd/fs.d/ufs/ncheck/ |
H A D | ncheck.c | 124 void bread(diskaddr_t bno, char *buf, int cnt); 581 bread(diskaddr_t bno, char *buf, int cnt) in bread() argument 586 if (llseek(fi, (offset_t)bno * DEV_BSIZE, 0) == -1) { in bread() 588 (offset_t)bno * DEV_BSIZE); in bread() 602 bno, cnt, got); in bread()
|
/titanic_41/usr/src/cmd/fs.d/udfs/fsdb/ |
H A D | fsdb.c | 802 uint32_t desc_type, bno, len; in get_blkno() local 847 bno = SWAP_32(sad->sad_ext_loc); in get_blkno() 851 bno = SWAP_32(lad->lad_ext_loc); in get_blkno() 861 de[d].blkno = bno; in get_blkno() 872 bno = de[i].blkno + ((off - b_off) >> l2b); in get_blkno() 874 udh, de[i].prn, bno)) == 0) { in get_blkno() 892 uint32_t bno, tcount; in read_file() local 896 if (get_blkno(inode, &bno, off) != 0) { in read_file() 899 if ((addr = getblk(bno << l2b)) == NULL) { in read_file() 902 if (bno == inode) { in read_file()
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/fs.d/ufs/mkfs/ |
H A D | mkfs.c | 325 diskaddr_t bno; member 399 static void rdfs(diskaddr_t bno, int size, char *bf); 400 static void wtfs(diskaddr_t bno, int size, char *bf); 401 static void awtfs(diskaddr_t bno, int size, char *bf, int release); 402 static void wtfs_breakup(diskaddr_t bno, int size, char *bf); 2516 diskaddr_t bno; /* UFS block number (not sector number) */ in initcg() local 2673 bno = dupper / sblock.fs_frag; in initcg() 2699 setblock(&sblock, cg_blksfree(&icg), bno); in initcg() 2711 bno++; in initcg() 3116 wtfs_breakup(transp->bno, transp->size, transp->buffer); in wait_for_write() [all …]
|
/titanic_41/usr/src/cmd/fs.d/ufs/quot/ |
H A D | quot.c | 382 bread(int fd, diskaddr_t bno, char *buf, int cnt) in bread() argument 386 if (llseek(fd, (offset_t)(bno * DEV_BSIZE), SEEK_SET) < 0) { in bread() 394 (void) fprintf(stderr, "quot: read error at block %lld\n", bno); in bread()
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | utilities.c | 1148 diskaddr_t bno; in updateclean() local 1308 bno = sblk.b_bno; in updateclean() 1311 sblkoff = ldbtob(bno); in updateclean() 1317 (longlong_t)bno, strerror(errno)); in updateclean() 1322 report_io_prob("READ FROM", bno, size, io_res); in updateclean() 1335 (longlong_t)bno, strerror(errno)); in updateclean() 1340 report_io_prob("WRITE TO", bno, size, io_res); in updateclean() 1371 report_io_prob(caddr_t what, diskaddr_t bno, size_t expected, ssize_t failure) in report_io_prob() argument 1375 what, (int)bno, strerror(errno)); in report_io_prob() 1378 what, (int)bno); in report_io_prob() [all …]
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/fs.d/ufs/ff/ |
H A D | ff.c | 141 void bread(diskaddr_t bno, char *buf, int cnt); 642 bread(diskaddr_t bno, char *buf, int cnt) in bread() argument 648 offset = (offset_t)bno * DEV_BSIZE; in bread() 662 "ff: (wanted %d got %d blk %lld)\n", cnt, got, bno); in bread()
|
/titanic_41/usr/src/cmd/fs.d/ufs/tunefs/ |
H A D | tunefs.c | 413 bread(diskaddr_t bno, char *buf, int cnt) in bread() argument 417 if (llseek(fi, (offset_t)bno * DEV_BSIZE, 0) < 0) { in bread()
|
/titanic_41/usr/src/cmd/ed/ |
H A D | ed.c | 1717 int bno, off; in getblock() local 1721 bno = atl >> 8; in getblock() 1725 if (bno >= 65535) { in getblock() 1730 if (bno == iblock) { in getblock() 1734 if (bno == oblock) in getblock() 1744 iblock = bno; in getblock() 1745 blkio(bno, ibuff, read); in getblock() 1764 oblock = bno; in getblock()
|
/titanic_41/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()
|
/titanic_41/usr/src/uts/common/fs/pcfs/ |
H A D | pc_node.c | 385 daddr_t bno; in pc_truncate() local 395 error = pc_balloc(pcp, (daddr_t)(llcn - 1), 1, &bno); in pc_truncate()
|
/titanic_41/usr/src/cmd/fs.d/ufs/quotacheck/ |
H A D | quotacheck.c | 645 bread(diskaddr_t bno, char *buf, int cnt) in bread() argument 650 pos = (offset_t)bno * DEV_BSIZE; in bread()
|