Searched refs:lbn (Results 1 - 25 of 62) sorted by relevance

123

/netbsd-current/usr.sbin/makefs/ffs/
H A Dffs_balloc.c87 daddr_t lbn, lastlbn; local
100 lbn = ffs_lblkno(fs, offset);
107 if (lbn < 0)
117 if (lastlbn < UFS_NDADDR && lastlbn < lbn) {
130 if (lbn < UFS_NDADDR) {
131 nb = ufs_rw32(ip->i_ffs1_db[lbn], needswap);
132 if (nb != 0 && ip->i_ffs1_size >= ffs_lblktosize(fs, lbn + 1)) {
142 error = bread(ip->i_devvp, lbn, fs->fs_bsize,
167 error = bread(ip->i_devvp, lbn, osize,
185 if (ip->i_ffs1_size < ffs_lblktosize(fs, lbn
334 daddr_t lbn, lastlbn; local
[all...]
/netbsd-current/sys/ufs/ffs/
H A Dffs_balloc.c113 daddr_t lbn, lastlbn; local
128 lbn = ffs_lblkno(fs, off);
135 UVMHIST_LOG(ubchist, "vp %#jx lbn 0x%jx size 0x%jx", (uintptr_t)vp,
136 lbn, size, 0);
138 if (lbn < 0)
148 if (lastlbn < UFS_NDADDR && lastlbn < lbn) {
178 if (lbn < UFS_NDADDR) {
179 nb = ufs_rw32(ip->i_ffs1_db[lbn], needswap);
180 if (nb != 0 && ip->i_size >= ffs_lblktosize(fs, lbn + 1)) {
190 error = bread(vp, lbn, f
531 daddr_t lbn, lastlbn; local
[all...]
H A Dffs_snapshot.c1047 daddr_t lbn, rlbn;
1066 lbn = ffs_fragstoblks(fs, ino_to_fsba(fs, cancelip->i_number));
1067 error = snapblkaddr(snapvp, lbn, &blkno);
1071 error = bread(snapvp, lbn, fs->fs_bsize,
1074 error = ffs_balloc(snapvp, ffs_lblktosize(fs, (off_t)lbn),
1077 error = rwfsblk(snapvp, B_READ, bp->b_data, lbn);
1136 lbn = -UFS_NDADDR;
1141 ib_get(cancelip, i), lbn, rlbn, len,
1146 lbn -= blksperindir + 1;
1159 daddr_t blkno, daddr_t lbn, daddr_
1558 daddr_t lbn; local
1891 daddr_t lbn, blkno, *snapblklist; local
2075 daddr_t lbn, nextlbn; local
2141 snapblkaddr(struct vnode *vp, daddr_t lbn, daddr_t *res) argument
2182 rwfsblk(struct vnode *vp, int flags, void *data, daddr_t lbn) argument
2245 wrsnapblk(struct vnode *vp, void *data, daddr_t lbn) argument
[all...]
H A Dffs_extattr.c121 #define sblksize(fs, o, lbn) ffs_sblksize(fs, o, lbn)
143 ufs_lbn_t lbn, nextlbn; local
167 lbn = lblkno(fs, uio->uio_offset);
168 nextlbn = lbn + 1;
176 size = sblksize(fs, dp->di_extsize, lbn);
200 error = bread(vp, -1 - lbn, size, 0, &bp);
212 error = breadn(vp, -1 - lbn,
262 ufs_lbn_t lbn; local
293 lbn
565 daddr_t lbn; local
[all...]
/netbsd-current/sys/ufs/lfs/
H A Dlfs_balloc.c129 daddr_t lbn, lastblock; local
147 lbn = lfs_lblkno(fs, startoffset);
154 /* (void)lfs_check(vp, lbn, 0); */
179 if (lastblock < ULFS_NDADDR && lastblock < lbn) {
212 if (lbn < ULFS_NDADDR && lfs_lblkno(fs, ip->i_size) <= lbn) {
213 osize = lfs_blksize(fs, ip, lbn);
215 if (lfs_lblktosize(fs, lbn) >= ip->i_size) {
221 *bpp = bp = getblk(vp, lbn, nsize, 0, 0);
240 lfs_dino_setdb(fs, ip->i_din, lbn, UNWRITTE
491 lfs_fragextend(struct vnode *vp, int osize, int nsize, daddr_t lbn, struct buf **bpp, kauth_cred_t cred) argument
623 lfs_register_block(struct vnode *vp, daddr_t lbn) argument
684 lfs_deregister_block(struct vnode *vp, daddr_t lbn) argument
[all...]
H A Dlfs_kernel.h94 daddr_t lbn; member in struct:lbnentry
H A Dlfs_inode.h192 daddr_t lfs_hiblk; /* Highest lbn held by inode */
233 # define LFS_ENTER_LOG(theop, thefile, theline, lbn, theflags, thepid) do {\
240 lfs_log[lfs_lognum].block = (lbn); \
266 # define LFS_ENTER_LOG(theop, thefile, theline, lbn, theflags, thepid) __nothing
H A Dulfs_readwrite.c127 daddr_t lbn, nextlbn; local
160 lbn = lfs_lblkno(fs, uio->uio_offset);
161 nextlbn = lbn + 1;
162 size = lfs_blksize(fs, ip, lbn);
168 error = bread(vp, lbn, size, 0, &bp);
171 error = breadn(vp, lbn,
424 daddr_t lbn; local
460 lbn = lfs_lblkno(fs, uio->uio_offset);
483 size = lfs_blksize(fs, ip, lbn) - bp->b_resid;
/netbsd-current/sbin/dump_lfs/
H A Dlfs_inode.c227 lfs_bmap(struct lfs *fs, union lfs_dinode *idinode, daddr_t lbn) argument
235 if(lbn > 0 && lbn > lfs_lblkno(fs, lfs_dino_getsize(fs, idinode))) {
244 if(lbn < 0) {
245 lbn *= -1;
246 if (lbn == ULFS_NDADDR) {
247 /* printf("lbn %d: single indir base\n", -lbn); */
249 } else if(lbn == BASE_DINDIR+1) {
250 /* printf("lbn
310 daddr_t lbn; local
[all...]
/netbsd-current/sys/ufs/ext2fs/
H A Dext2fs_extents.c60 daddr_t lbn, daddr_t *first_lbn, daddr_t *last_lbn)
71 if (lbn < m->ei_blk)
93 ext4_ext_binsearch(struct inode *ip, struct ext4_extent_path *path, daddr_t lbn, argument
107 if (lbn < m->e_blk)
122 if (path->ep_ext->e_blk + path->ep_ext->e_len <= lbn) {
141 ext4_ext_in_cache(struct inode *ip, daddr_t lbn, struct ext4_extent *ep) argument
152 if (lbn >= ecp->ec_blk && lbn < ecp->ec_blk + ecp->ec_len) {
182 daddr_t lbn, struct ext4_extent_path *path)
202 if (ext4_ext_binsearch_index(ip, path, lbn,
59 ext4_ext_binsearch_index(struct inode *ip, struct ext4_extent_path *path, daddr_t lbn, daddr_t *first_lbn, daddr_t *last_lbn) argument
181 ext4_ext_find_extent(struct m_ext2fs *fs, struct inode *ip, daddr_t lbn, struct ext4_extent_path *path) argument
[all...]
H A Dext2fs_balloc.c103 daddr_t newb, lbn, pref; local
120 lbn = bn;
154 ip->i_e2fs_last_lblk = lbn;
187 pref = ext2fs_blkpref(ip, lbn, 0, (int32_t *)0);
188 error = ext2fs_alloc(ip, lbn, pref, cred, &newb);
227 pref = ext2fs_blkpref(ip, lbn, 0, (int32_t *)0);
228 error = ext2fs_alloc(ip, lbn, pref, cred, &newb);
265 pref = ext2fs_blkpref(ip, lbn, indirs[num].in_off, &bap[0]);
266 error = ext2fs_alloc(ip, lbn, pref, cred, &newb);
273 ip->i_e2fs_last_lblk = lbn;
[all...]
H A Dext2fs_bmap.c138 daddr_t lbn; local
143 lbn = bn;
152 ext4_ext_find_extent(fs, ip, lbn, &path);
157 (lbn - path.ep_sparse_ext.e_blk) - 1;
159 *runb = lbn - path.ep_sparse_ext.e_blk;
166 *bnp = fsbtodb(fs, lbn - ep->e_blk
173 *runp = ep->e_len - (lbn - ep->e_blk) - 1;
175 *runb = lbn - ep->e_blk;
H A Dext2fs_subr.c87 daddr_t lbn; local
92 lbn = ext2_lblkno(fs, offset);
95 if ((error = bread(vp, lbn, fs->e2fs_bsize, 0, &bp)) != 0) {
H A Dext2fs_readwrite.c159 daddr_t lbn, nextlbn; local
188 lbn = ext2_lblkno(fs, uio->uio_offset);
189 nextlbn = lbn + 1;
199 error = bread(vp, lbn, size, 0, &bp);
202 error = breadn(vp, lbn,
367 daddr_t lbn; local
393 lbn = ext2_lblkno(fs, uio->uio_offset);
400 error = ext2fs_balloc(ip, lbn, blkoffset + xfersize, cred, &bp,
/netbsd-current/sbin/fsck_lfs/
H A Dbufcache.c76 vl_hash(struct uvnode * vp, daddr_t lbn) argument
78 return (int)((unsigned long) vp + lbn) & hashmask;
194 incore(struct uvnode * vp, daddr_t lbn) argument
199 hash = vl_hash(vp, lbn);
206 if (bp->b_vp == vp && bp->b_lblkno == lbn) {
214 * Return a buffer of the given size, lbn and uvnode.
218 getblk(struct uvnode * vp, daddr_t lbn, int size) argument
230 if ((bp = incore(vp, lbn)) != NULL) {
281 bp->b_blkno = bp->b_lblkno = lbn;
283 bp->b_hashval = vl_hash(vp, lbn);
338 bread(struct uvnode * vp, daddr_t lbn, int size, int flags, struct ubuf ** bpp) argument
[all...]
H A Dvnode.h64 #define VOP_BMAP(vp, lbn, daddrp) ((vp)->v_bmap_op((vp), (lbn), (daddrp)))
H A Dpass6.c74 rfw_update_single(struct uvnode *vp, daddr_t lbn, daddr_t ndaddr, size_t size) argument
89 error = ulfs_bmaparray(fs, vp, lbn, &daddr, a, &num);
92 " looking up lbn %" PRId64 "\n", error, lbn);
99 ooff = lfs_dino_getdb(fs, ip->i_din, lbn);
105 ofrags = lfs_numfrags(fs, ip->i_lfs_fragsize[lbn]);
109 lfs_dino_setdb(fs, ip->i_din, lbn, ndaddr);
138 if (lbn >= 0 && lbn < ULFS_NDADDR)
139 osize = ip->i_lfs_fragsize[lbn];
333 daddr_t lbn; local
379 daddr_t lbn, off, odaddr; local
[all...]
H A Dsegwrite.c119 daddr_t lbn; local
121 lbn = bp->b_lblkno;
122 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 0);
128 daddr_t lbn; local
130 lbn = bp->b_lblkno;
131 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 1);
137 daddr_t lbn; local
139 lbn
450 lfs_update_single(struct lfs * fs, struct segment * sp, daddr_t lbn, daddr_t ndaddr, int size) argument
544 daddr_t lbn; local
[all...]
H A Dlfs.c300 lfs_vop_bmap(struct uvnode * vp, daddr_t lbn, daddr_t * daddrp) argument
302 return ulfs_bmaparray(vp->v_fs, vp, lbn, daddrp, NULL, NULL);
1013 daddr_t lbn, lastblock; local
1020 lbn = lfs_lblkno(fs, startoffset);
1043 if (lastblock < ULFS_NDADDR && lastblock < lbn) {
1065 if (lbn < ULFS_NDADDR && lfs_lblkno(fs, lfs_dino_getsize(fs, ip->i_din)) <= lbn) {
1066 osize = lfs_blksize(fs, ip, lbn);
1068 if (lfs_lblktosize(fs, lbn) >= lfs_dino_getsize(fs, ip->i_din)) {
1072 *bpp = bp = getblk(vp, lbn, nsiz
1219 lfs_fragextend(struct uvnode *vp, int osize, int nsize, daddr_t lbn, struct ubuf **bpp) argument
[all...]
/netbsd-current/sys/fs/filecorefs/
H A Dfilecore_bmap.c101 daddr_t lbn = ap->a_bn; local
120 nblk = (ip->i_size >> bshift) - (lbn + 1);
131 return filecore_map(fcmp, ip->i_dirent.addr, lbn, ap->a_bnp);
135 filecore_map(struct filecore_mnt *fcmp, u_int32_t addr, daddr_t lbn, daddr_t *bnp) argument
145 printf("filecore_map(addr=%x, lbn=%llx)\n", addr, (long long)lbn);
149 ((lbn << fcmp->log2bsize) >> fcmp->drec.log2secsize);
H A Dfilecore_extern.h102 #define filecore_blksize(fcp, ip, lbn) ((fcp)->blksize)
/netbsd-current/sys/fs/cd9660/
H A Dcd9660_lookup.c388 daddr_t lbn; local
393 lbn = cd9660_lblkno(imp, offset);
394 bsize = cd9660_blksize(imp, ip, lbn);
396 if ((error = VOP_BMAP(vp, lbn, &devvp, &lbn, NULL)) != 0) {
400 if ((error = bread(devvp, lbn, bsize, 0, &bp)) != 0) {
H A Dcd9660_extern.h90 #define cd9660_blksize(imp, ip, lbn) ((imp)->logical_block_size)
/netbsd-current/sys/fs/nfs/client/
H A Dnfs_clbio.c411 daddr_t lbn, rabn; local
463 lbn = uio->uio_offset / biosize;
464 on = uio->uio_offset - (lbn * biosize);
471 (off_t)(lbn + 1 + nra) * biosize < nsize; nra++) {
472 rabn = lbn + 1 + nra;
499 if ((off_t)lbn * biosize >= nsize) {
501 } else if ((off_t)(lbn + 1) * biosize > nsize) {
502 bcount = nsize - (off_t)lbn * biosize;
504 bp = nfs_getcacheblk(vp, lbn, bcount, td);
564 lbn
853 daddr_t lbn; local
1835 daddr_t lbn; local
[all...]
/netbsd-current/sys/arch/vax/boot/common/
H A Dromread.S55 * romread_uvax (int lbn, int size, void *buf, struct rpb *rpb)
64 pushl 4(%ap) # lbn to start reading
71 * romwrite_uvax (int lbn, int size, void *buf, struct rpb *rpb)
80 pushl 4(%ap) # lbn to start reading

Completed in 214 milliseconds

123