• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ffs/

Lines Matching refs:lbn

100 	register ufs_daddr_t lbn,
123 if (lbn < 0)
138 if (nb < NDADDR && nb < lbn) {
178 if (lbn < NDADDR) {
179 nb = ip->i_db[lbn];
180 if (nb != 0 && ip->i_size >= (lbn + 1) * fs->fs_bsize) {
182 error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), fs->fs_bsize, NOCRED, &bp);
199 error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), osize, NOCRED, &bp);
213 error = ffs_realloccg(ip, lbn,
214 ffs_blkpref(ip, lbn, (int)lbn,
218 ip->i_db[lbn] = dbtofsb(fs, (ufs_daddr_t)buf_blkno(bp));
222 ip->i_size = (lbn * fs->fs_bsize) + size;
237 if (ip->i_size < (lbn + 1) * fs->fs_bsize)
241 error = ffs_alloc(ip, lbn,
242 ffs_blkpref(ip, lbn, (int)lbn, &ip->i_db[0]),
247 bp = buf_getblk(vp, (daddr64_t)((unsigned)lbn), nsize, 0, 0, BLK_WRITE);
253 ip->i_db[lbn] = newb;
267 if (error = ufs_getlbns(vp, lbn, indirs, &num))
281 pref = ffs_blkpref(ip, lbn, 0, (ufs_daddr_t *)0);
282 if (error = ffs_alloc(ip, lbn, pref, (int)fs->fs_bsize,
330 pref = ffs_blkpref(ip, lbn, 0, (ufs_daddr_t *)0);
332 ffs_alloc(ip, lbn, pref, (int)fs->fs_bsize, cred, &newb)) {
374 pref = ffs_blkpref(ip, lbn, indirs[i].in_off, &bap[0]);
376 lbn, pref, (int)fs->fs_bsize, cred, &newb)) {
401 nbp = buf_getblk(vp, (daddr64_t)((unsigned)lbn), fs->fs_bsize, 0, 0, BLK_WRITE);
418 error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), (int)fs->fs_bsize, NOCRED, &nbp);
424 nbp = buf_getblk(vp, (daddr64_t)((unsigned)lbn), fs->fs_bsize, 0, 0, BLK_WRITE);
468 ufs_daddr_t lbn,
498 if (nb < NDADDR && nb < lbn) {
499 panic("ffs_blkalloc():cannot extend file: i_size %d, lbn %d", ip->i_size, lbn);
504 if (lbn < NDADDR) {
505 nb = ip->i_db[lbn];
506 if (nb != 0 && ip->i_size >= (lbn + 1) * fs->fs_bsize) {
521 if (ip->i_size < (lbn + 1) * fs->fs_bsize)
525 error = ffs_alloc(ip, lbn,
526 ffs_blkpref(ip, lbn, (int)lbn, &ip->i_db[0]),
530 ip->i_db[lbn] = newb;
539 if (error = ufs_getlbns(vp, lbn, indirs, &num))
554 pref = ffs_blkpref(ip, lbn, 0, (ufs_daddr_t *)0);
555 if (error = ffs_alloc(ip, lbn, pref, (int)fs->fs_bsize,
603 pref = ffs_blkpref(ip, lbn, 0, (ufs_daddr_t *)0);
605 ffs_alloc(ip, lbn, pref, (int)fs->fs_bsize, cred, &newb)) {
647 pref = ffs_blkpref(ip, lbn, indirs[i].in_off, &bap[0]);
649 lbn, pref, (int)fs->fs_bsize, cred, &newb)) {