Searched defs:lbn (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass1b.c77 daddr32_t lbn; local
89 lbn = idesc->id_lbn * sblock.fs_frag + nfrags;
90 if (find_dup_ref(blkno, idesc->id_number, lbn, DB_INCR))
91 blkerror(idesc->id_number, "DUP", blkno, lbn);
H A Dpass1.c628 daddr32_t lbn; local
705 lbn = idesc->id_lbn * sblock.fs_frag + nfrags;
707 blkerror(idesc->id_number, "DUP", fragno, lbn);
734 (void) find_dup_ref(fragno, idesc->id_number, lbn,
H A Dinode.c1088 blkerror(fsck_ino_t ino, char *type, daddr32_t blk, daddr32_t lbn) argument
1090 pfatal("FRAGMENT %d %s I=%u LFN %d", blk, type, ino, lbn);
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_alloc.c75 daddr_t lbn; /* logical (disk) block number */ local
77 lbn = pc_cltodb(fsp, lcn);
78 if (lbn >= fsp->pcfs_rdirsec) {
82 *dbnp = pc_dbdaddr(fsp, fsp->pcfs_rdirstart + lbn);
86 fsp->pcfs_secsize * (fsp->pcfs_rdirsec - lbn));
183 daddr_t lbn; local
185 lbn = pc_cltodb(fsp, lcn);
186 if (lbn >= fsp->pcfs_rdirsec)
188 *dbnp = pc_dbdaddr(fsp, fsp->pcfs_rdirstart + lbn);
H A Dpc_vnops.c1490 daddr_t lbn, bn; local
1498 lbn = pc_lblkno(fsp, off);
1513 lbn += howmany(xfersize, fsp->pcfs_clsize),
1520 err1 = pc_bmap(pcp, lbn, &bn, &xfersize);
1770 u_offset_t lbn, lbnoff, xferoffset; local
1799 lbn = pc_lblkno(fsp, io_off);
1805 lbn += howmany(xfersize, fsp->pcfs_clsize),
1815 err1 = pc_bmap(pcp, (daddr_t)lbn, &bn, &xfersize);
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_ufs.c232 grub_daddr32_t lbn, dbn, dblk; local
245 lbn = lblkno(SUPERBLOCK, loc);
247 dbn = sbmap(lbn);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dufsread.c221 ufs_lbn_t lbn; local
299 lbn = lblkno(&fs, fs_off);
301 if (lbn < NDADDR) {
302 addr2 = DIP(di_db[lbn]);
303 } else if (lbn < NDADDR + NINDIR(&fs)) {
306 u = (u_int)(lbn - NDADDR) / n * DBPERVBLK;
313 n = (lbn - NDADDR) & (n - 1);
334 n = sblksize(&fs, (off_t)size, lbn) - (off & ~VBLKMASK);
/illumos-gate/usr/src/common/fs/
H A Dufsops.c325 daddr32_t lbn, d; local
338 lbn = lblkno(&devp->un_fs.di_fs, dstuff->loc);
339 d = sbmap(filep, lbn);
346 blksize(&devp->un_fs.di_fs, filep->fi_inode, lbn);
371 daddr32_t lbn; local
389 lbn = lblkno(fs, filep->fi_offset);
392 filep->fi_blocknum = fsbtodb(fs, sbmap(filep, lbn));
397 size = blksize(fs, filep->fi_inode, lbn);
436 daddr32_t lbn; local
454 lbn
[all...]
H A Dhsfs.c292 daddr_t lbn; local
304 lbn = hdbtodb(dirp->loc >> ISO_SECTOR_SHIFT);
305 filep->fi_blocknum = lbn + hdbtodb(ip->i_number);
327 daddr_t lbn; local
335 lbn = hdbtodb(filep->fi_offset >> ISO_SECTOR_SHIFT);
336 filep->fi_blocknum = lbn + hdbtodb(ip->i_number);
666 /* we use lbn of data extent as an inode # equivalent */
793 * will want to return new lbn, len.
/illumos-gate/usr/src/cmd/fs.d/ufs/ncheck/
H A Dncheck.c496 daddr_t lbn, d; local
504 lbn = lblkno(&sblock, dirp->loc);
506 d = bmap(lbn);
511 (int)dblksize(&sblock, dirp->ip, (int)lbn));
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_bmap.c112 #define DOEXTENT(fs, lbn, boff, bnp, lenp, size, tblp, n, chkfrag, maxtrans) {\
127 (((u_offset_t)lbn) << fs->fs_bshift); \
207 daddr_t lbn; local
218 lbn = (daddr_t)lblkno(fs, off);
220 if (lbn < 0)
226 if (lbn < NDADDR) {
227 DOEXTENT(fs, lbn, boff, bnp, lenp,
228 ip->i_size, &ip->i_db[lbn], NDADDR - lbn, 1,
239 tbn = lbn
317 daddr_t ob, nb, pref, lbn, llbn, tbn; local
1189 daddr_t ob, nb, tbn, lbn, skip; local
1332 daddr_t lbn; local
[all...]
H A Dufs_subr.c574 daddr_t lbn; /* logical blkno of last blk in file */ local
595 lbn = (daddr_t)lblkno(fs, ip->i_size - 1);
596 if (lbn < NDADDR)
598 if (lbn < NDADDR + NINDIR(fs)) {
621 if (clbn > lbn)
644 if (clbn > lbn)
658 if (clbn > lbn)
679 daddr_t lbn; local
697 lbn = (daddr_t)lblkno(fs, off);
698 if (lbn <
[all...]
H A Dufs_alloc.c535 blkpref(struct inode *ip, daddr_t lbn, int indx, daddr32_t *bap) argument
546 if (lbn < NDADDR) {
555 startcg = itog(fs, ip->i_number) + lbn / fs->fs_maxbpg;
H A Dufs_dir.c2775 daddr_t lbn; local
2781 lbn = (daddr_t)lblkno(fs, offset);
2782 bsize = (uint_t)blksize(fs, ip, lbn);
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c409 daddr32_t lbn, d; local
421 lbn = lblkno(&devp->un_fs.di_fs, dstuff->loc);
422 d = sbmap(filep, lbn);
429 blksize(&devp->un_fs.di_fs, filep->fi_inode, lbn);
455 daddr32_t lbn, fsbn; local
473 lbn = lblkno(fs, filep->fi_offset);
476 fsbn = sbmap(filep, lbn);
490 size = blksize(fs, filep->fi_inode, lbn);
/illumos-gate/usr/src/cmd/fs.d/ufs/ff/
H A Dff.c562 diskaddr_t lbn, d; local
568 lbn = lblkno(&sblock, dirp->loc);
569 d = bmap(lbn);
573 (int)dblksize(&sblock, dirp->ip, (int)lbn));
/illumos-gate/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c286 register daddr_t lbn; local
297 lbn = hdbtodb(dirp->loc >> ISO_SECTOR_SHIFT);
298 filep->fi_blocknum = lbn + hdbtodb(ip->i_number);
324 register daddr_t lbn; local
341 lbn = hdbtodb(filep->fi_offset >> ISO_SECTOR_SHIFT);
344 filep->fi_blocknum = lbn + hdbtodb(ip->i_number);
/illumos-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_node.c379 hs_findhash(ino64_t nodeid, uint_t lbn, uint_t off, struct vfs *vfsp) argument
400 tp->hs_dir_lbn == lbn &&
506 * note: off is the sector offset, not lbn offset
512 uint_t lbn,
537 lbn = dp->ext_lbn;
542 * Normalize lbn and off before creating a nodeid
546 lbn += off >> hvp->lbn_shift;
571 if ((vp = hs_findhash(nodeid, lbn, off, vfsp)) == NULL) {
581 if ((vp = hs_findhash(nodeid, lbn, off, vfsp)) == NULL) {
603 hp->hs_dir_lbn = lbn;
510 hs_makenode( struct hs_direntry *dp, uint_t lbn, uint_t off, struct vfs *vfsp) argument
712 hs_remakenode(uint_t lbn, uint_t off, struct vfs *vfsp, struct vnode **vpp) argument
1657 uint_t lbn; /* logical block number */ local
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_vnops.c3712 u_offset_t lbn; local
3738 lbn = off / bsize;
3739 blkoff = lbn * bsize;
4122 u_offset_t lbn; local
4139 lbn = pp->p_offset / bsize;
4140 lbn_off = lbn * bsize;
4155 ASSERT((pp->p_offset / bsize) >= lbn);
H A Dnfs3_vnops.c4616 u_offset_t lbn; local
4643 lbn = off / bsize;
4644 blkoff = lbn * bsize;
5034 u_offset_t lbn; local
5049 lbn = pp->p_offset / bsize;
5050 lbn_off = lbn * bsize;
5065 ASSERT((pp->p_offset / bsize) >= lbn);
H A Dnfs4_vnops.c9836 u_offset_t lbn; local
9865 lbn = off / bsize;
9866 blkoff = lbn * bsize;
10261 u_offset_t lbn; local
10277 lbn = pp->p_offset / bsize;
10278 lbn_off = lbn * bsize;
10293 ASSERT((pp->p_offset / bsize) >= lbn);
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_vnops.c3831 u_offset_t lbn; local
3862 lbn = off / bsize;
3863 blkoff = lbn * bsize;
4207 u_offset_t lbn; local
4217 lbn = pp->p_offset / bsize;
4218 lbn_off = lbn * bsize;
4233 ASSERT((pp->p_offset / bsize) >= lbn);
/illumos-gate/usr/src/boot/sys/ufs/ffs/
H A Dfs.h97 * information in the inode, using the ``blksize(fs, ip, lbn)'' macro.
610 #define blksize(fs, ip, lbn) \
611 (((lbn) >= NDADDR || (ip)->i_size >= smalllblktosize(fs, (lbn) + 1)) \
614 #define sblksize(fs, size, lbn) \
615 (((lbn) >= NDADDR || (size) >= ((lbn) + 1) << (fs)->fs_bshift) \
626 * are the negated address of the lowest lbn reachable, double indirects
627 * are this lbn - 1 and triple indirects are this lbn
631 lbn_level(ufs_lbn_t lbn) argument
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dst.c296 {"lbn", MT_DENSITY1 | MT_NOREWIND | MT_BSD},
17357 uint64_t lbn; local
17359 lbn = rinfo->cmd_attrib->get_lba(pkt->pkt_cdbp);
17365 if ((lbn != un->un_running.lgclblkno) ||
17369 rinfo->pos.lgclblkno = lbn;
17372 un->un_running.lgclblkno = lbn;
17375 uint64_t lbn = un->un_running.lgclblkno; local
17379 pkt->pkt_cdbp[4] = (uchar_t)(lbn >> 56);
17380 pkt->pkt_cdbp[5] = (uchar_t)(lbn >> 48);
17381 pkt->pkt_cdbp[6] = (uchar_t)(lbn >> 4
[all...]

Completed in 455 milliseconds