Home
last modified time | relevance | path

Searched refs:i_size (Results 1 – 25 of 43) sorted by relevance

12

/titanic_41/usr/src/uts/common/fs/ufs/
H A Dufs_extvnops.c103 (void *)vnodep->v_pages, offset1, iolen, ip->i_size, (void *)fdbp)); in ufs_rdwr_data()
108 ASSERT(offset1 < ip->i_size); in ufs_rdwr_data()
110 if ((offset1 + iolen) > ip->i_size) { in ufs_rdwr_data()
111 iolen = ip->i_size - offset1; in ufs_rdwr_data()
296 uoff, (io_len - done_len), ip->i_size, (void *)fdbp)); in ufs_alloc_data()
313 if (uoff + nbytes > ip->i_size) { in ufs_alloc_data()
321 ip->i_size, uoff + nbytes)); in ufs_alloc_data()
333 if (uoff >= ip->i_size) { in ufs_alloc_data()
350 contig = ip->i_size - uoff; in ufs_alloc_data()
379 if (contig > (ip->i_size - uoff)) { in ufs_alloc_data()
[all …]
H A Dufs_bmap.c228 ip->i_size, &ip->i_db[lbn], NDADDR - lbn, 1, in bmap_read()
287 DOEXTENT(fs, lbn, boff, bnp, lenp, ip->i_size, &bap[i], in bmap_read()
288 MIN(NINDIR(fs) - i, (daddr_t)lblkno(fs, ip->i_size - 1) - lbn + 1), in bmap_read()
346 llbn = (daddr_t)((ip->i_size) ? lblkno(fs, ip->i_size - 1) : 0); in bmap_write()
446 ip->i_size < ((u_offset_t)(lbn + 1)) << fs->fs_bshift) { in bmap_write()
449 osize = fragroundup(fs, blkoff(fs, ip->i_size)); in bmap_write()
483 if (ip->i_size < in bmap_write()
567 if (isdirquota && (ip->i_size || in bmap_write()
939 dblks = (ip->i_size + fsboffset) >> fsbshift; in bmap_has_holes()
1191 u_offset_t isz = (offset_t)ip->i_size; in bmap_find()
H A Dufs_alloc.c404 if (ip->i_size || ip->i_blocks) { in ufs_ialloc()
407 if (ip->i_size) { in ufs_ialloc()
410 fs->fs_fsmnt, (int)ino, ip->i_size, in ufs_ialloc()
416 ip->i_size = (u_offset_t)0; in ufs_ialloc()
1612 osz = ip->i_size; in ufs_allocsp()
1626 ufs_trans_trunc_resv(ip, ip->i_size + (NDADDR * fs->fs_bsize), in ufs_allocsp()
1656 if ((uoff + nbytes) > ip->i_size) in ufs_allocsp()
1657 ip->i_size = (uoff + nbytes); in ufs_allocsp()
1672 ufs_trans_trunc_resv(ip, ip->i_size + in ufs_allocsp()
1704 if (i >= ip->i_size) in ufs_allocsp()
[all …]
H A Dufs_directio.c406 size = ip->i_size; in ufs_directio_write()
522 if ((uoff + n) > ip->i_size) { in ufs_directio_write()
529 ip->i_size = uoff + n; in ufs_directio_write()
562 if ((ip->i_size > MAXOFF32_T) && in ufs_directio_write()
577 if (size == ip->i_size) in ufs_directio_write()
765 if (size != ip->i_size) { in ufs_directio_write()
878 size = ip->i_size; in ufs_directio_read()
H A Dufs_dir.c316 if (!skipcaching && (dp->i_size >= ufs_min_dir_cache)) { in ufs_dirlook()
327 switch (dnlc_dir_start(dcap, dp->i_size >> in ufs_dirlook()
361 if (offset > dp->i_size) { in ufs_dirlook()
379 endsearch = P2ROUNDUP_TYPED(dp->i_size, DIRBLKSIZ, u_offset_t); in ufs_dirlook()
1184 slotp->offset = P2ROUNDUP_TYPED(tdp->i_size, in ufs_dircheckforname()
1197 if (!noentry && tdp->i_size >= ufs_min_dir_cache) { in ufs_dircheckforname()
1216 tdp->i_size >> AV_DIRECT_SHIFT)) { in ufs_dircheckforname()
1236 dirsize = P2ROUNDUP_TYPED(tdp->i_size, DIRBLKSIZ, u_offset_t); in ufs_dircheckforname()
1689 dp->i_size < sizeof (struct dirtemplate)) { in ufs_dirfixdotdot()
1914 if (slotp->endoff && (slotp->endoff < tdp->i_size)) { in ufs_diraddentry()
[all …]
H A Dufs_vnops.c425 (uiop->uio_loffset < ip->i_size) && (uiop->uio_resid > 0) && in ufs_check_rewrite()
426 ((ip->i_size - uiop->uio_loffset) >= uiop->uio_resid) && in ufs_check_rewrite()
601 uiop->uio_loffset = ip->i_size; in ufs_write()
901 if (uoff + n > ip->i_size) { in wrip()
1085 old_i_size = ip->i_size; in wrip()
1093 if ((ip->i_size > MAXOFF32_T) && in wrip()
1413 diff = ip->i_size - uoff; in rdip()
2050 vap->va_size = ip->i_size; in ufs_getattr()
2481 if (ip->i_size == 0) { in ufs_readlink()
2507 MIN(ip->i_size, uiop->uio_resid), in ufs_readlink()
[all …]
/titanic_41/usr/src/grub/grub-0.97/stage2/
H A Dfsys_minix.c90 __u32 i_size; member
108 __u32 i_size; member
371 filemax = (INODE->i_size); in minix_dir()
422 filemax = (INODE->i_size); in minix_dir()
435 if (!(INODE->i_size) || !S_ISDIR (INODE->i_mode)) in minix_dir()
458 if (loc >= INODE->i_size) in minix_dir()
H A Ddisk_inode_ffs.h60 #define i_size ic_size.val[1] macro
62 #define i_size ic_size.val[0] macro
H A Dfsys_ffs.c210 filemax = INODE->i_size; in ffs_dir()
222 if (!(INODE->i_size) || ((INODE->i_mode & IFMT) != IFDIR)) in ffs_dir()
237 if (loc >= INODE->i_size) in ffs_dir()
H A Dfsys_ext2fs.c146 __u32 i_size; /* 4: Size in bytes */ member
665 filemax = (INODE->i_size); in ext2fs_dir()
726 filemax = (INODE->i_size); in ext2fs_dir()
738 if (!(INODE->i_size) || !S_ISDIR (INODE->i_mode)) in ext2fs_dir()
762 if (loc >= INODE->i_size) in ext2fs_dir()
H A Dufs2.h68 #define i_size di_size macro
411 (((lbn) >= NDADDR || (ip)->i_size >= smalllblktosize(fs, (lbn) + 1)) \
413 : (fragroundup(fs, blkoff(fs, (ip)->i_size))))
/titanic_41/usr/src/cmd/fs.d/cachefs/cfsd/
H A Dcfsd_logfile.c280 logfile_object_p->i_size = sinfo.st_size; in logfile_setup()
292 if (logfile_object_p->i_size < LOGFILE_ENTRY_START) { in logfile_setup()
294 logfile_object_p->i_name, logfile_object_p->i_size)); in logfile_setup()
413 if (offset >= logfile_object_p->i_size) { in logfile_entry()
480 dbug_precond((0 <= offset) && (offset < logfile_object_p->i_size)); in logfile_offset()
550 dbug_print(("dump", "File Size %d", logfile_object_p->i_size)); in logfile_dumpstats()
H A Dcfsd_maptbl.c432 maptbl_object_p->i_size = sinfo.st_size; in maptbl_setup()
445 maptbl_object_p->i_size / sizeof (struct cfs_dlog_mapping_space); in maptbl_setup()
458 for (offset = 0; offset < maptbl_object_p->i_size; in maptbl_setup()
468 size = maptbl_object_p->i_size - offset; in maptbl_setup()
628 dbug_print(("dump", "File Size %d", maptbl_object_p->i_size)); in maptbl_dumpstats()
H A Dcfsd_logfile.h51 off_t i_size; /* file size */ member
H A Dcfsd_maptbl.h38 off_t i_size; /* file size */ member
/titanic_41/usr/src/common/fs/
H A Dhsfs.c186 ip->i_size = hsdep.hs_dir.ext_size; in opendir()
249 if (ip->i_size == 0) { in dlook()
273 ip->i_size = hsdep->hs_dir.ext_size; in dlook()
299 if (dirp->loc >= ip->i_size) { in readdir()
314 if (udp->d_reclen == 0 && dirp->loc <= ip->i_size) { in readdir()
330 diff = ip->i_size - filep->fi_offset; in getblock()
344 if (filep->fi_offset - off + size >= ip->i_size) in getblock()
369 filep->fi_offset + count > ip->i_size) in bhsfs_read()
370 count = ip->i_size - filep->fi_offset; in bhsfs_read()
621 stp->st_size = ip->i_size; in bhsfs_fstat()
H A Dufsops.c297 if (ip->i_size == 0) { in dlook()
331 if (dstuff->loc >= filep->fi_inode->i_size) { in readdir()
380 diff = filep->fi_inode->i_size - filep->fi_offset; in getblock()
416 if (filep->fi_offset - off + size >= filep->fi_inode->i_size) in getblock()
445 diff = filep->fi_inode->i_size - filep->fi_offset; in getblock_noopt()
469 if (filep->fi_offset - off + size >= filep->fi_inode->i_size) in getblock_noopt()
501 filep->fi_offset + count > filep->fi_inode->i_size) in bufs_read()
502 count = filep->fi_inode->i_size - filep->fi_offset; in bufs_read()
724 stp->st_size = ip->i_size; in bufs_fstat()
H A Ddecompress.c121 if (filep->fi_inode->i_size < 3) in cf_check_compressed()
229 if (zsp->avail_in == 0 && filep->fi_cfoff < ip->i_size) { in cf_read()
256 if (filep->fi_cfoff >= ip->i_size || err == Z_STREAM_END) in cf_read()
/titanic_41/usr/src/uts/common/fs/udfs/
H A Dudf_bmap.c113 if ((error = ud_read_icb_till_off(ip, ip->i_size)) == 0) { in ud_bmap_has_holes()
143 if ((error = ud_read_icb_till_off(ip, ip->i_size)) == 0) { in ud_bmap_read()
238 if (ip->i_size != 0) { in ud_bmap_write()
239 error = fbread(ITOV(ip), 0, ip->i_size, S_OTHER, &fbp); in ud_bmap_write()
278 if ((PCEIL(ip->i_size) < PBASE(off)) && in ud_bmap_write()
279 ((PBASE(off) - PCEIL(ip->i_size)) >= PAGESIZE)) { in ud_bmap_write()
281 if (ip->i_size != 0) { in ud_bmap_write()
301 count = PBASE(off) - PCEIL(ip->i_size); in ud_bmap_write()
368 if (ud_read_icb_till_off(ip, ip->i_size) != 0) { in ud_bmap_write()
373 isize = CEIL(ip->i_size); in ud_bmap_write()
[all …]
H A Dudf_vnops.c387 uiop->uio_loffset = ip->i_size; in udf_write()
432 vap->va_size = ip->i_size; in udf_getattr()
446 vap->va_size = ip->i_size; in udf_getattr()
786 if (ip->i_size == 0) { in udf_create()
1120 dirsiz = ip->i_size; in udf_readdir()
1394 size = ip->i_size; in udf_readlink()
1694 beyond_eof = uoff + len > ip->i_size + PAGEOFFSET; in udf_getpage()
1742 (offset < ip->i_size)) { in udf_getpage()
1750 if ((offset + blk_size) > ip->i_size) { in udf_getpage()
1751 count = ip->i_size - offset; in udf_getpage()
[all …]
H A Dudf_dir.c196 end = dirsize = dip->i_size; in ud_dirlook()
777 if ((slot.offset + FID_LEN(fid)) == dp->i_size) { in ud_dirremove()
900 dirsize = tdp->i_size; in ud_dircheckforname()
1000 slotp->size = tdp->i_max_emb - tdp->i_size; in ud_dircheckforname()
1034 if (ip->i_size == 0) { in ud_dirempty()
1042 for (off = 0; off < ip->i_size; off += entry_len) { in ud_dirempty()
1375 ip->i_size = sizeof (struct file_id); in ud_dirmakedirect()
1380 iext->ib_count = ip->i_size; in ud_dirmakedirect()
1384 ip->i_size = sizeof (struct file_id); in ud_dirmakedirect()
1666 old_size = (uint32_t)dp->i_size; in ud_dirprepareentry()
[all …]
H A Dudf_inode.c606 ip->i_size = SWAP_64(fe->fe_info_len); in ud_iget()
1208 fe->fe_info_len = SWAP_64(ip->i_size); in ud_iupdat()
1244 crc_len += ip->i_size; in ud_iupdat()
1245 fe->fe_len_adesc = SWAP_32(((uint32_t)ip->i_size)); in ud_iupdat()
1246 } else if ((ip->i_size != 0) && (ip->i_ext != NULL) && in ud_iupdat()
1250 ip->i_size)) == 0) { in ud_iupdat()
1583 if (length == oip->i_size) { in ud_itrunc()
1593 if (length > oip->i_size) { in ud_itrunc()
1606 u_offset_t osize = oip->i_size; in ud_itrunc()
1607 oip->i_size = length; in ud_itrunc()
[all …]
/titanic_41/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c236 if (ip->i_size == 0) { in dlook()
292 if (dirp->loc >= ip->i_size) { in readdir()
306 if (udp->d_reclen == 0 && dirp->loc <= ip->i_size) { in readdir()
334 diff = ip->i_size - filep->fi_offset; in getblock()
382 if (filep->fi_offset - off + size >= ip->i_size) in getblock()
416 if (filep->fi_offset + count > ip->i_size) in boot_hsfs_read()
417 count = ip->i_size - filep->fi_offset; in boot_hsfs_read()
639 stp->st_size = ip->i_size; in boot_hsfs_fstat()
965 ip->i_size = hsdep->hs_dir.ext_size; in hs_seti()
/titanic_41/usr/src/stand/lib/fs/ufs/
H A Dufsops.c337 if (ip->i_size == 0) in dlook()
415 if (dstuff->loc >= filep->fi_inode->i_size) { in readdir()
464 diff = filep->fi_inode->i_size - filep->fi_offset; in getblock()
527 if (filep->fi_offset - off + size >= filep->fi_inode->i_size) in getblock()
558 if (filep->fi_offset + count > filep->fi_inode->i_size) in boot_ufs_read()
559 count = filep->fi_inode->i_size - filep->fi_offset; in boot_ufs_read()
779 stp->st_size = ip->i_size; in boot_ufs_fstat()
/titanic_41/usr/src/uts/common/sys/fs/
H A Dufs_inode.h292 #define i_size i_ic.ic_lsize macro
544 #define UFS_GET_ISIZE(resultp, ip) *(resultp) = (ip)->i_size
545 #define UFS_SET_ISIZE(value, ip) (ip)->i_size = (value)
552 *(resultp) = (ip)->i_size; \
558 (ip)->i_size = (value); \

12