Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_extvnops.c106 ASSERT(offset1 < ip->i_size); in ufs_rdwr_data()
108 if ((offset1 + iolen) > ip->i_size) { in ufs_rdwr_data()
109 iolen = ip->i_size - offset1; in ufs_rdwr_data()
311 if (uoff + nbytes > ip->i_size) { in ufs_alloc_data()
319 ip->i_size, uoff + nbytes)); in ufs_alloc_data()
331 if (uoff >= ip->i_size) { in ufs_alloc_data()
348 contig = ip->i_size - uoff; in ufs_alloc_data()
378 contig -= ip->i_size - uoff; in ufs_alloc_data()
381 ip->i_size - offset, in ufs_alloc_data()
388 old_i_size = ip->i_size; 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()
416 ip->i_size = (u_offset_t)0; in ufs_ialloc()
1611 osz = ip->i_size; in ufs_allocsp()
1656 ip->i_size = (uoff + nbytes); in ufs_allocsp()
1703 if (i >= ip->i_size) in ufs_allocsp()
1704 ip->i_size += fs->fs_bsize; in ufs_allocsp()
1791 if ((ip->i_size > MAXOFF32_T) && in ufs_allocsp()
1836 ip->i_size = osz; in ufs_allocsp()
1908 if (ip->i_size < lp->l_start) { in ufs_freesp()
[all …]
H A Dufs_directio.c389 size = ip->i_size; in ufs_directio_write()
505 if ((uoff + n) > ip->i_size) { in ufs_directio_write()
512 ip->i_size = uoff + n; in ufs_directio_write()
545 if ((ip->i_size > MAXOFF32_T) && in ufs_directio_write()
560 if (size == ip->i_size) in ufs_directio_write()
748 if (size != ip->i_size) { in ufs_directio_write()
861 size = ip->i_size; in ufs_directio_read()
H A Dufs_dir.c327 switch (dnlc_dir_start(dcap, dp->i_size >> in ufs_dirlook()
361 if (offset > dp->i_size) { in ufs_dirlook()
1184 slotp->offset = P2ROUNDUP_TYPED(tdp->i_size, in ufs_dircheckforname()
1216 tdp->i_size >> AV_DIRECT_SHIFT)) { in ufs_dircheckforname()
1689 dp->i_size < sizeof (struct dirtemplate)) { in ufs_dirfixdotdot()
1992 dp->i_size = entryend; in dirprepareentry()
1997 } else if (entryend > dp->i_size) { in dirprepareentry()
2337 ip->i_size = DIRBLKSIZ; in ufs_dirmakedirect()
2893 ASSERT(ip->i_size <= (offset_t)MAXOFF_T); in ufs_dirscan()
2998 ip->i_size < sizeof (struct dirtemplate)) { in ufs_dircheckpath()
[all …]
H A Dufs_vnops.c601 uiop->uio_loffset = ip->i_size; in ufs_write()
831 if (uoff + n > ip->i_size) { in wrip()
1015 old_i_size = ip->i_size; in wrip()
1023 if ((ip->i_size > MAXOFF32_T) && in wrip()
1342 diff = ip->i_size - uoff; in rdip()
1945 vap->va_size = ip->i_size; in ufs_getattr()
2372 if (ip->i_size == 0) { in ufs_readlink()
2432 if (ip->i_size <= FSL_SIZE && in ufs_readlink()
2442 size = ip->i_size; in ufs_readlink()
2948 if (ip->i_size == 0) { in ufs_create()
[all …]
H A Dufs_trans.c757 if (length < ip->i_size) { in ufs_trans_trunc_resv()
758 size = ip->i_size - length; in ufs_trans_trunc_resv()
836 ASSERT(length + resid < ip->i_size); in ufs_trans_itrunc()
848 err = ufs_itrunc(ip, blkroundup(fs, (ip->i_size - resid)), in ufs_trans_itrunc()
850 ASSERT(ip->i_size != length); in ufs_trans_itrunc()
H A Dufs_inode.c1199 if (length == oip->i_size) in ufs_itrunc()
1216 if (length == oip->i_size) { in ufs_itrunc()
1242 if (length > oip->i_size) { in ufs_itrunc()
1260 u_offset_t osize = oip->i_size; in ufs_itrunc()
1261 oip->i_size = length; in ufs_itrunc()
1414 oip->i_size = length; in ufs_itrunc()
1503 fs->fs_fsmnt, (int)oip->i_number, oip->i_size, in ufs_itrunc()
/illumos-gate/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))))
H A Dfs.h434 (((lbn) >= NDADDR || (ip)->i_size >= ((lbn) + 1) << (fs)->fs_bshift) \
436 : (fragroundup(fs, blkoff(fs, (ip)->i_size))))
/illumos-gate/usr/src/common/fs/
H A Dhsfs.c184 ip->i_size = hsdep.hs_dir.ext_size; in opendir()
248 if (ip->i_size == 0) { in dlook()
272 ip->i_size = hsdep->hs_dir.ext_size; in dlook()
298 if (dirp->loc >= ip->i_size) { in readdir()
313 if (udp->d_reclen == 0 && dirp->loc <= ip->i_size) { in readdir()
329 diff = ip->i_size - filep->fi_offset; in getblock()
343 if (filep->fi_offset - off + size >= ip->i_size) in getblock()
368 filep->fi_offset + count > ip->i_size) in bhsfs_read()
369 count = ip->i_size - filep->fi_offset; in bhsfs_read()
620 stp->st_size = ip->i_size; in bhsfs_fstat()
H A Dufsops.c301 if (ip->i_size == 0) { in dlook()
335 if (dstuff->loc >= filep->fi_inode->i_size) { in readdir()
384 diff = filep->fi_inode->i_size - filep->fi_offset; in getblock()
420 if (filep->fi_offset - off + size >= filep->fi_inode->i_size) in getblock()
449 diff = filep->fi_inode->i_size - filep->fi_offset; in getblock_noopt()
473 if (filep->fi_offset - off + size >= filep->fi_inode->i_size) in getblock_noopt()
505 filep->fi_offset + count > filep->fi_inode->i_size) in bufs_read()
506 count = filep->fi_inode->i_size - filep->fi_offset; in bufs_read()
731 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()
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_bmap.c111 if ((error = ud_read_icb_till_off(ip, ip->i_size)) == 0) { in ud_bmap_has_holes()
141 if ((error = ud_read_icb_till_off(ip, ip->i_size)) == 0) { in ud_bmap_read()
236 if (ip->i_size != 0) { in ud_bmap_write()
237 error = fbread(ITOV(ip), 0, ip->i_size, S_OTHER, &fbp); in ud_bmap_write()
276 if ((PCEIL(ip->i_size) < PBASE(off)) && in ud_bmap_write()
277 ((PBASE(off) - PCEIL(ip->i_size)) >= PAGESIZE)) { in ud_bmap_write()
279 if (ip->i_size != 0) { in ud_bmap_write()
299 count = PBASE(off) - PCEIL(ip->i_size); in ud_bmap_write()
366 if (ud_read_icb_till_off(ip, ip->i_size) != 0) { in ud_bmap_write()
371 isize = CEIL(ip->i_size); in ud_bmap_write()
[all …]
H A Dudf_vnops.c432 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()
1140 dirsiz = ip->i_size; in udf_readdir()
1414 size = ip->i_size; in udf_readlink()
2538 contig = ip->i_size; in ud_page_fill()
2845 crc_len += ip->i_size; in ud_putapage()
2854 contig = ip->i_size; in ud_putapage()
3024 diff = ip->i_size - uoff; in ud_rdip()
3195 old_i_size = ip->i_size; in ud_wrip()
[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()
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()
1715 dp->i_size += entrysize; in ud_dirprepareentry()
[all …]
H A Dudf_inode.c607 ip->i_size = SWAP_64(fe->fe_info_len); in ud_iget()
1209 fe->fe_info_len = SWAP_64(ip->i_size); in ud_iupdat()
1245 crc_len += ip->i_size; in ud_iupdat()
1246 fe->fe_len_adesc = SWAP_32(((uint32_t)ip->i_size)); in ud_iupdat()
1251 ip->i_size)) == 0) { in ud_iupdat()
1584 if (length == oip->i_size) { in ud_itrunc()
1594 if (length > oip->i_size) { in ud_itrunc()
1607 u_offset_t osize = oip->i_size; in ud_itrunc()
1608 oip->i_size = length; in ud_itrunc()
1662 oip->i_size = length; in ud_itrunc()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c338 if (ip->i_size == 0) in dlook()
416 if (dstuff->loc >= filep->fi_inode->i_size) { in readdir()
465 diff = filep->fi_inode->i_size - filep->fi_offset; in getblock()
528 if (filep->fi_offset - off + size >= filep->fi_inode->i_size) in getblock()
559 if (filep->fi_offset + count > filep->fi_inode->i_size) in boot_ufs_read()
560 count = filep->fi_inode->i_size - filep->fi_offset; in boot_ufs_read()
780 stp->st_size = ip->i_size; in boot_ufs_fstat()
/illumos-gate/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); \
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_misc.c555 increase = (ip->i_size < newsize); in cpr_grow_statefile()
556 offset = ip->i_size; in cpr_grow_statefile()
637 size = (ip->i_size * SIZE_RATE) / INTEGRAL; in cpr_statefile_ok()
722 isize = ip->i_size; in cpr_statefile_ok()

12