/netbsd-6-1-5-RELEASE/sbin/fsck_lfs/ |
H A D | fsck.h | 190 #define setbmap(blkno) setbit(blockmap, blkno) 191 #define testbmap(blkno) isset(blockmap, blkno) 192 #define clrbmap(blkno) clrbit(blockmap, blkno) 194 #define setbmap(blkno,ino) if(blkno > maxfsblock)raise(1); else blockmap[blkno] = ino 195 #define testbmap(blkno) blockma [all...] |
H A D | pass1.c | 327 daddr_t blkno = idesc->id_blkno; local 331 if ((anyout = chkrange(blkno, idesc->id_numfrags)) != 0) { 332 blkerror(idesc->id_number, "BAD", blkno); 342 } else if (!testbmap(blkno)) { 343 seg_table[dtosn(fs, blkno)].su_nbytes += idesc->id_numfrags * fs->lfs_fsize; 345 for (ndblks = idesc->id_numfrags; ndblks > 0; blkno++, ndblks--) { 346 if (anyout && chkrange(blkno, 1)) { 348 } else if (!testbmap(blkno)) { 351 setbmap(blkno); 353 setbmap(blkno, ides [all...] |
H A D | pass4.c | 151 daddr_t blkno = idesc->id_blkno; local 156 sn = dtosn(fs, blkno); 157 for (ndblks = idesc->id_numfrags; ndblks > 0; blkno++, ndblks--) { 158 if (chkrange(blkno, 1)) { 160 } else if (testbmap(blkno) || preen) { 162 if (dlp->dup != blkno) 171 clrbmap(blkno);
|
/netbsd-6-1-5-RELEASE/sbin/dump/ |
H A D | rcache.c | 184 rawread(daddr_t blkno, char *buf, int size) argument 194 if (lseek(diskfd, ((off_t) blkno << dev_bshift), SEEK_SET) == -1) { 200 if (blkno + (size >> dev_bshift) > ufsib->ufs_dsize) { 216 disk, strerror(errno), (long long)blkno, size); 220 disk, (long long)blkno, size, cnt); 237 for (i = 0; i < size; i += dev_bsize, buf += dev_bsize, blkno++) { 238 if (lseek(diskfd, ((off_t)blkno << dev_bshift), 249 (long long)blkno, dev_bsize); 254 disk, (long long)blkno, dev_bsize, cnt); 259 bread(daddr_t blkno, cha argument [all...] |
/netbsd-6-1-5-RELEASE/sbin/fsck_ext2fs/ |
H A D | pass1b.c | 111 daddr_t blkno = idesc->id_blkno; local 113 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) { 114 if (chkrange(blkno, 1)) 117 if (dlp->dup == blkno) { 118 blkerror(idesc->id_number, "DUP", blkno); 120 duphead->dup = blkno;
|
H A D | pass4.c | 142 daddr_t blkno = idesc->id_blkno; local 144 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) { 145 if (chkrange(blkno, 1)) { 147 } else if (testbmap(blkno)) { 149 if (dlp->dup != blkno) 158 clrbmap(blkno);
|
H A D | fsck.h | 223 #define setbmap(blkno) setbit(blockmap, blkno) 224 #define testbmap(blkno) isset(blockmap, blkno) 225 #define clrbmap(blkno) clrbit(blockmap, blkno)
|
H A D | pass1.c | 334 daddr_t blkno = idesc->id_blkno; local 338 if ((anyout = chkrange(blkno, idesc->id_numfrags)) != 0) { 339 blkerror(idesc->id_number, "BAD", blkno); 350 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) { 351 if (anyout && chkrange(blkno, 1)) { 353 } else if (!testbmap(blkno)) { 355 setbmap(blkno); 357 blkerror(idesc->id_number, "DUP", blkno); 374 new->dup = blkno; 383 if (dlp->dup == blkno) [all...] |
/netbsd-6-1-5-RELEASE/sbin/fsck_ffs/ |
H A D | pass1b.c | 104 daddr_t blkno = idesc->id_blkno; local 106 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) { 107 if (chkrange(blkno, 1)) 110 if (dlp->dup == blkno) { 111 blkerror(idesc->id_number, "DUP", blkno); 113 duphead->dup = blkno;
|
H A D | pass4.c | 162 daddr_t blkno = idesc->id_blkno; local 165 cg = dtog(sblock, blkno); 175 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) { 176 if (chkrange(blkno, 1)) { 178 } else if (testbmap(blkno)) { 180 if (dlp->dup != blkno) 189 clrbmap(blkno); 192 dtogd(sblock, blkno));
|
/netbsd-6-1-5-RELEASE/sys/sys/ |
H A D | blist.h | 36 * blkno = blist_alloc(blist, count) 37 * (void) blist_free(blist, blkno, count) 38 * nblks = blist_fill(blist, blkno, count) 83 extern void blist_free(blist_t blist, blist_blkno_t blkno, blist_blkno_t count); 84 extern blist_blkno_t blist_fill(blist_t bl, blist_blkno_t blkno,
|
/netbsd-6-1-5-RELEASE/sbin/dkscan_bsdlabel/ |
H A D | dkscan_util.h | 37 int dkwedge_read(struct disk *pdk, struct vnode *vp, daddr_t blkno,
|
H A D | dkscan_util.c | 70 dkwedge_read(struct disk *pdk, struct vnode *vp, daddr_t blkno, argument 73 if (pread(disk_fd, tbuf, len, blkno * BLOCK_SIZE) < 0)
|
/netbsd-6-1-5-RELEASE/sys/arch/ia64/stand/common/ |
H A D | bcache.c | 70 static void bcache_invalidate(daddr_t blkno); 71 static void bcache_insert(void *buf, daddr_t blkno); 72 static int bcache_lookup(void *buf, daddr_t blkno); 264 bcache_insert(void *buf, daddr_t blkno) argument 276 if (bcache_ctl[i].bc_blkno == blkno) { 287 DEBUG("insert blk %d -> %d @ %d # %d", blkno, cand, now, bcache_bcount); 289 bcache_ctl[cand].bc_blkno = blkno; 300 bcache_lookup(void *buf, daddr_t blkno) argument 309 if ((bcache_ctl[i].bc_blkno == blkno) && ((bcache_ctl[i].bc_stamp + BCACHE_TIMEOUT) >= now)) { 311 DEBUG("hit blk %d <- %d (now %d then %d)", blkno, 321 bcache_invalidate(daddr_t blkno) argument [all...] |
/netbsd-6-1-5-RELEASE/tests/sbin/fsck_ffs/ |
H A D | t_check_quotas.sh | 42 local blkno=$(printf "inode 3\nblks\n" | /sbin/fsdb -nF -f ${IMG} | awk '$1 == "0:" {print $2}') 43 blkno=$(($blkno * 512 + 104)) 46 count=8 seek=${blkno} conv=notrunc
|
/netbsd-6-1-5-RELEASE/sys/arch/alpha/include/ |
H A D | prom.h | 98 #define prom_read(chan, len, buf, blkno) \ 99 prom_dispatch(PROM_R_READ, chan, len, (uint64_t)buf, blkno) 100 #define prom_write(chan, len, buf, blkno) \ 101 prom_dispatch(PROM_R_WRITE, chan, len, (uint64_t)buf, blkno)
|
/netbsd-6-1-5-RELEASE/sys/dev/ata/ |
H A D | satafis_subr.c | 120 fis[rhd_lba0] = (ata_bio->blkno >> 0) & 0xff; 121 fis[rhd_lba1] = (ata_bio->blkno >> 8) & 0xff; 122 fis[rhd_lba2] = (ata_bio->blkno >> 16) & 0xff; 125 fis[rhd_lba3] = (ata_bio->blkno >> 24) & 0xff; 126 fis[rhd_lba4] = (ata_bio->blkno >> 32) & 0xff; 127 fis[rhd_lba5] = (ata_bio->blkno >> 40) & 0xff; 129 fis[rhd_dh] = ((ata_bio->blkno >> 24) & 0x0f) |
|
/netbsd-6-1-5-RELEASE/usr.sbin/makefs/ffs/ |
H A D | buf.c | 69 bread(int fd, struct fs *fs, daddr_t blkno, int size, struct buf **bpp) argument 78 printf("bread: fs %p blkno %lld size %d\n", 79 fs, (long long)blkno, size); 80 *bpp = getblk(fd, fs, blkno, size); 83 printf("bread: bp %p blkno %lld offset %lld bcount %ld\n", 114 * of negative lblkno -> real blkno that ffs_balloc() 120 * a real blkno, we'd add a lot more code & complexity 142 printf("bwrite: bp %p blkno %lld offset %lld bcount %ld\n", 175 printf("\tlblkno %10lld blkno %10lld count %6ld bufsize %6ld\n", 183 getblk(int fd, struct fs *fs, daddr_t blkno, in argument [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/mmeye/stand/boot/ |
H A D | wdc.c | 361 wdc_exec_read(struct wd_softc *wd, uint8_t cmd, daddr_t blkno, void *data) argument 377 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28) 385 wd_c.r_blkno = blkno; 389 wd_c.r_sector = (blkno >> 0) & 0xff; 390 wd_c.r_cyl = (blkno >> 8) & 0xffff; 391 wd_c.r_head = (blkno >> 24) & 0x0f; 396 wd_c.r_sector = blkno % wd->sc_label.d_nsectors; 398 blkno /= wd->sc_label.d_nsectors; 399 wd_c.r_head = blkno % wd->sc_label.d_ntracks; 400 blkno / [all...] |
/netbsd-6-1-5-RELEASE/sbin/dump_lfs/ |
H A D | lfs_inode.c | 291 daddr_t blkno; local 296 blkno = lfs_bmap(sblock, &dp->dp1 ,lbn); 297 if (blkno != ifblkno) 298 bread(fsbtodb(sblock, blkno), (char *)ifileblock, 319 daddr_t blkno; local 328 blkno = sblock->lfs_idaddr; 329 bread(fsbtodb(sblock, blkno), (char *)inoblock, 338 blkno = lfs_ientry(inum)->if_daddr; 339 if(blkno == LFS_UNUSED_DADDR) 342 if(blkno ! [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/cobalt/stand/boot/ |
H A D | wdc.c | 326 wdc_exec_read(struct wd_softc *wd, uint8_t cmd, daddr_t blkno, void *data) argument 342 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28) 350 wd_c.r_blkno = blkno; 354 wd_c.r_sector = (blkno >> 0) & 0xff; 355 wd_c.r_cyl = (blkno >> 8) & 0xffff; 356 wd_c.r_head = (blkno >> 24) & 0x0f; 361 wd_c.r_sector = blkno % wd->sc_label.d_nsectors; 363 blkno /= wd->sc_label.d_nsectors; 364 wd_c.r_head = blkno % wd->sc_label.d_ntracks; 365 blkno / [all...] |
/netbsd-6-1-5-RELEASE/sys/ufs/ffs/ |
H A D | ffs_subr.c | 117 ffs_getblk(struct vnode *vp, daddr_t lblkno, daddr_t blkno, int size, argument 122 KASSERT(blkno >= 0 || blkno == FFS_NOBLK); 126 if (blkno != FFS_NOBLK) 127 (*bpp)->b_blkno = blkno; 283 ffs_clusteracct(struct fs *fs, struct cg *cgp, int32_t blkno, int cnt) argument 303 setbit(freemapp, blkno); 305 clrbit(freemapp, blkno); 309 start = blkno + 1; 330 start = blkno [all...] |
H A D | ffs_snapshot.c | 413 daddr_t blkno, numblks; 458 blkno = 1; 459 blkno = ufs_rw64(blkno, UFS_FSNEEDSWAP(fs)); 461 (void *)&blkno, sizeof(blkno), lblktosize(fs, (off_t)numblks), 479 for (blkno = NDADDR, n = 0; blkno < numblks; blkno += NINDIR(fs)) { 480 error = ffs_balloc(vp, lblktosize(fs, (off_t)blkno), 1430 daddr_t numblks, blkno, dblk; local 1549 daddr_t blkno; local 1881 daddr_t lbn, blkno, *snapblklist; local [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/sun3/sun3/ |
H A D | machdep.c | 537 daddr_t blkno; local 573 blkno = dumplo; 596 error = (*dsw->d_dump)(dumpdev, blkno, vaddr, PAGE_SIZE); 599 blkno += btodb(PAGE_SIZE); 603 error = (*dsw->d_dump)(dumpdev, blkno, vaddr, PAGE_SIZE); 606 blkno += btodb(PAGE_SIZE); 610 error = (*dsw->d_dump)(dumpdev, blkno, vaddr, PAGE_SIZE); 613 blkno += btodb(PAGE_SIZE); 635 error = (*dsw->d_dump)(dumpdev, blkno, vaddr, PAGE_SIZE); 639 blkno [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/bebox/stand/boot/ |
H A D | wdc.c | 419 wdc_exec_read(struct wd_softc *wd, uint8_t cmd, daddr_t blkno, void *data) argument 442 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28) 450 wd_c.r_blkno = blkno; 454 wd_c.r_sector = (blkno >> 0) & 0xff; 455 wd_c.r_cyl = (blkno >> 8) & 0xffff; 456 wd_c.r_head = (blkno >> 24) & 0x0f; 461 wd_c.r_sector = blkno % wd->sc_label.d_nsectors; 463 blkno /= wd->sc_label.d_nsectors; 464 wd_c.r_head = blkno % wd->sc_label.d_ntracks; 465 blkno / [all...] |