/original-bsd/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 69 ufs_daddr_t bno; local 99 if (bno > 0) { 102 *bnp = bno; 236 if (bno > 0) { 734 long bno; local 957 bno = blkstofrags(fs, (bno + i)); 975 if (bno < 0) 1225 bno = dtogd(fs, bno); 1242 bbase = bno - fragnum(fs, bno); 1323 bno = dtogd(fs, bno); [all …]
|
H A D | fs.h | 401 #define cbtocylno(fs, bno) \ argument 402 ((bno) * NSPF(fs) / (fs)->fs_spc) 403 #define cbtorpos(fs, bno) \ argument 404 (((bno) * NSPF(fs) % (fs)->fs_spc / (fs)->fs_nsect * (fs)->fs_trackskew + \ 405 (bno) * NSPF(fs) % (fs)->fs_spc % (fs)->fs_nsect * (fs)->fs_interleave) % \
|
/original-bsd/sbin/icheck/ |
H A D | icheck.c | 387 chk(bno, s, size) in chk() argument 388 daddr_t bno; in chk() 404 bno, ino, s); 411 bno, ino, s); 417 if (fsblist[n] >= bno && fsblist[n] < bno + frags) 423 duped(bno, size) in duped() argument 424 daddr_t bno; in duped() 432 if (isset(bmap, bno)) 434 setbit(bmap, bno); 472 bread(bno, buf, cnt) in bread() argument [all …]
|
/original-bsd/usr.bin/ex/ex3.7recover/ |
H A D | ex3.7recover.c | 534 int bno, cnt, bad, was; in scrapbad() local 550 while (bno > 0) { in scrapbad() 556 bno--; in scrapbad() 721 register int bno, off; local 723 bno = (atl >> OFFBTS) & BLKMSK; 725 if (bno >= NMBLKS) 728 if (bno == iblock) { 732 if (bno == oblock) 738 iblock = bno; 739 blkio(bno, ibuff, read); [all …]
|
/original-bsd/old/512restor/ |
H A D | 512restor.c | 760 dwrite(bno, b) in dwrite() argument 761 daddr_t bno; in dwrite() 786 dread(bno, buf, cnt) in dread() argument 787 daddr_t bno; in dread() 926 daddr_t bno; in balloc() local 948 dwrite(bno, zeroes); in balloc() 949 return(bno); in balloc() 1149 daddr_t bno; local 1153 bno += 2; 1162 daddr_t bno; local [all …]
|
/original-bsd/sbin/badsect/ |
H A D | badsect.c | 165 rdfs(bno, size, bf) in rdfs() argument 166 daddr_t bno; in rdfs() 172 if (lseek(fsi, (off_t)bno * dev_bsize, SEEK_SET) < 0) { 173 printf("seek error: %ld\n", bno); 179 printf("read error: %ld\n", bno);
|
/original-bsd/usr.sbin/mkproto/ |
H A D | mkproto.c | 310 daddr_t bno, alloc(); local 312 bno = alloc(size); 316 ib[(*aibc)++] = bno; 462 rdfs(bno, size, bf) in rdfs() argument 463 int bno, size; in rdfs() 470 printf("seek error: %d\n", bno); 476 printf("read error: %d\n", bno); 485 wtfs(bno, size, bf) in wtfs() argument 486 int bno, size; in wtfs() 493 printf("seek error: %d\n", bno); [all …]
|
/original-bsd/usr.bin/ex/ |
H A D | ex_temp.c | 187 register int bno, off; local 189 bno = (atl >> OFFBTS) & BLKMSK; 191 if (bno >= NMBLKS) 194 if (bno == iblock) { 199 if (bno == iblock2) { 204 if (bno == oblock) 212 iblock2 = bno; 213 blkio(bno, ibuff2, read); 222 iblock = bno; 223 blkio(bno, ibuff, read); [all …]
|
/original-bsd/old/dcheck/ |
H A D | dcheck.c | 227 bread(bno, buf, cnt) in bread() argument 228 daddr_t bno; in bread() 233 lseek(fi, bno * dev_bsize, 0); 235 printf("read error %d\n", bno);
|
/original-bsd/sbin/ncheck/ |
H A D | ncheck.c | 382 bread(bno, buf, lcount) in bread() argument 383 daddr_t bno; in bread() 388 register off_t off = bno * dev_bsize; 392 (void) fprintf(stderr, "ncheck: read error %ld\n", bno); 406 "ncheck: re-read error %ld\n", bno); 411 bno++;
|
/original-bsd/sbin/tunefs/ |
H A D | tunefs.c | 286 bread(bno, buf, cnt) in bread() argument 287 daddr_t bno; in bread() 293 if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0)
|
/original-bsd/usr.sbin/quot/ |
H A D | quot.c | 330 bread(fd, bno, buf, cnt) in bread() argument 332 off_t bno; 335 (void)lseek(fd, bno, L_SET); 337 fprintf(stderr, "quot: read error at block %ld\n", bno);
|
/original-bsd/sbin/newfs/ |
H A D | mkfs.c | 1094 rdfs(bno, size, bf) in rdfs() argument 1095 daddr_t bno; in rdfs() 1102 memmove(bf, membase + bno * sectorsize, size); 1105 if (lseek(fsi, (off_t)bno * sectorsize, 0) < 0) { 1106 printf("seek error: %ld\n", bno); 1112 printf("read error: %ld\n", bno); 1121 wtfs(bno, size, bf) in wtfs() argument 1122 daddr_t bno; in wtfs() 1129 memmove(membase + bno * sectorsize, bf, size); 1135 printf("seek error: %ld\n", bno); [all …]
|
/original-bsd/old/ld/ |
H A D | ld.c | 195 int bno; member 209 int bno; member 216 int bno; member 1614 lseek(infil, (sp->bno+1)<<p_blkshift, 0); 1621 dseek(sp, (sp->bno+1+(take>>p_blkshift))<<p_blkshift, -1); 1660 if ((p = &page[0])->bno!=b && (p = &page[1])->bno!=b) 1663 if (page[0].bno < page[1].bno) 1665 p->bno = b; 1673 sp->bno = b; 1689 dseek(sp, ((long)(sp->bno+1)<<p_blkshift), (long)-1); [all …]
|
/original-bsd/sbin/quotacheck/ |
H A D | quotacheck.c | 574 bread(bno, buf, cnt) in bread() argument 575 daddr_t bno; in bread() 580 if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 || 582 err(1, "block %ld", bno);
|
/original-bsd/bin/ed/ |
H A D | ed.c | 944 register bno, off; in getblock() local 948 bno = (atl>>8)&0377; in getblock() 950 if (bno >= 255) { in getblock() 955 if (bno==iblock) { in getblock() 959 if (bno==oblock) in getblock() 970 iblock = bno; in getblock() 971 blkio(bno, ibuff, read); in getblock() 992 oblock = bno; in getblock()
|