Home
last modified time | relevance | path

Searched refs:bno (Results 1 – 25 of 29) sorted by relevance

12

/titanic_50/usr/src/uts/common/fs/ufs/
H A Dufs_alloc.c109 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 Dlufs.c275 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 Dufs_thread.c1008 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_50/usr/src/cmd/vi/port/
H A Dexrecover.c613 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 Dex_temp.c216 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_50/usr/src/uts/common/fs/udfs/
H A Dudf_alloc.c236 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 Dudf_bmap.c131 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_50/usr/src/grub/grub-0.97/stage2/
H A Dfs.h389 #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_50/usr/src/cmd/fs.d/ufs/fsirand/
H A Dfsirand.c65 int bno; in main() local
138 bno = itod(fs, inum); in main()
139 seekaddr = (offset_t)fsbtodb(fs, bno) * DEV_BSIZE; in main()
/titanic_50/usr/src/uts/common/sys/fs/
H A Dufs_fs.h602 #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 Dudf_inode.h552 #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 Dufs_trans.h381 #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_50/usr/src/cmd/fs.d/ufs/ncheck/
H A Dncheck.c124 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_50/usr/src/cmd/fs.d/udfs/fsdb/
H A Dfsdb.c802 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_50/usr/src/cmd/fs.d/udfs/mkfs/
H A Dmkfs.c88 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_50/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c325 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);
2495 diskaddr_t bno; /* UFS block number (not sector number) */ in initcg() local
2652 bno = dupper / sblock.fs_frag; in initcg()
2678 setblock(&sblock, cg_blksfree(&icg), bno); in initcg()
2690 bno++; in initcg()
3095 wtfs_breakup(transp->bno, transp->size, transp->buffer); in wait_for_write()
[all …]
/titanic_50/usr/src/cmd/fs.d/ufs/quot/
H A Dquot.c382 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_50/usr/src/cmd/fs.d/ufs/fsck/
H A Dutilities.c1148 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_50/usr/src/cmd/fs.d/ufs/df/
H A Ddf.c941 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_50/usr/src/cmd/fs.d/ufs/ff/
H A Dff.c141 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_50/usr/src/cmd/fs.d/ufs/tunefs/
H A Dtunefs.c413 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_50/usr/src/cmd/ed/
H A Ded.c1717 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_50/usr/src/cmd/fs.d/ufs/newfs/
H A Dnewfs.c1085 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_50/usr/src/cmd/fs.d/ufs/quotacheck/
H A Dquotacheck.c645 bread(diskaddr_t bno, char *buf, int cnt) in bread() argument
650 pos = (offset_t)bno * DEV_BSIZE; in bread()
/titanic_50/usr/src/uts/common/fs/pcfs/
H A Dpc_node.c382 daddr_t bno; in pc_truncate() local
392 error = pc_balloc(pcp, (daddr_t)(llcn - 1), 1, &bno); in pc_truncate()

12