Searched refs:i_size (Results 1 - 25 of 46) sorted by relevance

12

/opensolaris-onvv-gate/usr/src/grub/grub-0.97/stage2/
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_minix.c90 __u32 i_size; member in struct:minix_inode
108 __u32 i_size; member in struct:minix2_inode
371 filemax = (INODE->i_size);
422 filemax = (INODE->i_size);
435 if (!(INODE->i_size) || !S_ISDIR (INODE->i_mode))
458 if (loc >= INODE->i_size)
H A Dfsys_ffs.c210 filemax = INODE->i_size;
222 if (!(INODE->i_size) || ((INODE->i_mode & IFMT) != IFDIR))
237 if (loc >= INODE->i_size)
H A Dfsys_ext2fs.c146 __u32 i_size; /* 4: Size in bytes */ member in struct:ext2_inode
665 filemax = (INODE->i_size);
726 filemax = (INODE->i_size);
738 if (!(INODE->i_size) || !S_ISDIR (INODE->i_mode))
762 if (loc >= INODE->i_size)
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))))
/opensolaris-onvv-gate/usr/src/uts/common/fs/ufs/
H A Dufs_extvnops.c103 (void *)vnodep->v_pages, offset1, iolen, ip->i_size, (void *)fdbp));
108 ASSERT(offset1 < ip->i_size);
110 if ((offset1 + iolen) > ip->i_size) {
111 iolen = ip->i_size - offset1;
296 uoff, (io_len - done_len), ip->i_size, (void *)fdbp));
313 if (uoff + nbytes > ip->i_size) {
321 ip->i_size, uoff + nbytes));
333 if (uoff >= ip->i_size) {
350 contig = ip->i_size - uoff;
379 if (contig > (ip->i_size
[all...]
H A Dufs_bmap.c228 ip->i_size, &ip->i_db[lbn], NDADDR - lbn, 1,
287 DOEXTENT(fs, lbn, boff, bnp, lenp, ip->i_size, &bap[i],
288 MIN(NINDIR(fs) - i, (daddr_t)lblkno(fs, ip->i_size - 1) - lbn + 1),
346 llbn = (daddr_t)((ip->i_size) ? lblkno(fs, ip->i_size - 1) : 0);
446 ip->i_size < ((u_offset_t)(lbn + 1)) << fs->fs_bshift) {
449 osize = fragroundup(fs, blkoff(fs, ip->i_size));
483 if (ip->i_size <
567 if (isdirquota && (ip->i_size ||
932 * cannot trust the values of i_size an
[all...]
H A Dufs_alloc.c404 if (ip->i_size || ip->i_blocks) {
407 if (ip->i_size) {
410 fs->fs_fsmnt, (int)ino, ip->i_size,
416 ip->i_size = (u_offset_t)0;
1612 osz = ip->i_size;
1626 ufs_trans_trunc_resv(ip, ip->i_size + (NDADDR * fs->fs_bsize),
1656 if ((uoff + nbytes) > ip->i_size)
1657 ip->i_size = (uoff + nbytes);
1672 ufs_trans_trunc_resv(ip, ip->i_size +
1704 if (i >= ip->i_size)
[all...]
H A Dufs_dir.c119 * If the directory size (from i_size) is greater than the ufs_min_dir_cache
316 if (!skipcaching && (dp->i_size >= ufs_min_dir_cache)) {
327 switch (dnlc_dir_start(dcap, dp->i_size >>
361 if (offset > dp->i_size) {
379 endsearch = P2ROUNDUP_TYPED(dp->i_size, DIRBLKSIZ, u_offset_t);
1184 slotp->offset = P2ROUNDUP_TYPED(tdp->i_size,
1197 if (!noentry && tdp->i_size >= ufs_min_dir_cache) {
1216 tdp->i_size >> AV_DIRECT_SHIFT)) {
1236 dirsize = P2ROUNDUP_TYPED(tdp->i_size, DIRBLKSIZ, u_offset_t);
1689 dp->i_size < sizeo
[all...]
H A Dufs_directio.c406 size = ip->i_size;
522 if ((uoff + n) > ip->i_size) {
529 ip->i_size = uoff + n;
562 if ((ip->i_size > MAXOFF32_T) &&
577 if (size == ip->i_size)
765 if (size != ip->i_size) {
878 size = ip->i_size;
H A Dufs_vnops.c424 (uiop->uio_loffset < ip->i_size) && (uiop->uio_resid > 0) &&
425 ((ip->i_size - uiop->uio_loffset) >= uiop->uio_resid) &&
600 uiop->uio_loffset = ip->i_size;
754 * ip->i_size is incremented before the uiomove
756 * address) reset ip->i_size.
757 * The better way would be to increment ip->i_size
900 if (uoff + n > ip->i_size) {
1084 old_i_size = ip->i_size;
1092 if ((ip->i_size > MAXOFF32_T) &&
1236 * page push failed, fix up i_size
[all...]
/opensolaris-onvv-gate/usr/src/cmd/fs.d/cachefs/cfsd/
H A Dcfsd_logfile.c280 logfile_object_p->i_size = sinfo.st_size;
292 if (logfile_object_p->i_size < LOGFILE_ENTRY_START) {
294 logfile_object_p->i_name, logfile_object_p->i_size));
413 if (offset >= logfile_object_p->i_size) {
464 * offset offset into file, must be 0 <= offset < i_size
480 dbug_precond((0 <= offset) && (offset < logfile_object_p->i_size));
550 dbug_print(("dump", "File Size %d", logfile_object_p->i_size));
H A Dcfsd_logfile.h51 off_t i_size; /* file size */ member in struct:cfsd_logfile_object
H A Dcfsd_maptbl.h38 off_t i_size; /* file size */ member in struct:cfsd_maptbl_object
H A Dcfsd_maptbl.c432 maptbl_object_p->i_size = sinfo.st_size;
445 maptbl_object_p->i_size / sizeof (struct cfs_dlog_mapping_space);
458 for (offset = 0; offset < maptbl_object_p->i_size;
468 size = maptbl_object_p->i_size - offset;
628 dbug_print(("dump", "File Size %d", maptbl_object_p->i_size));
/opensolaris-onvv-gate/usr/src/common/fs/
H A Dhsfs.c186 ip->i_size = hsdep.hs_dir.ext_size;
249 if (ip->i_size == 0) {
273 ip->i_size = hsdep->hs_dir.ext_size;
299 if (dirp->loc >= ip->i_size) {
314 if (udp->d_reclen == 0 && dirp->loc <= ip->i_size) {
330 diff = ip->i_size - filep->fi_offset;
344 if (filep->fi_offset - off + size >= ip->i_size)
369 filep->fi_offset + count > ip->i_size)
370 count = ip->i_size - filep->fi_offset;
621 stp->st_size = ip->i_size;
[all...]
H A Dufsops.c297 if (ip->i_size == 0) {
331 if (dstuff->loc >= filep->fi_inode->i_size) {
380 diff = filep->fi_inode->i_size - filep->fi_offset;
416 if (filep->fi_offset - off + size >= filep->fi_inode->i_size)
445 diff = filep->fi_inode->i_size - filep->fi_offset;
469 if (filep->fi_offset - off + size >= filep->fi_inode->i_size)
501 filep->fi_offset + count > filep->fi_inode->i_size)
502 count = filep->fi_inode->i_size - filep->fi_offset;
724 stp->st_size = ip->i_size;
H A Ddecompress.c121 if (filep->fi_inode->i_size < 3)
229 if (zsp->avail_in == 0 && filep->fi_cfoff < ip->i_size) {
256 if (filep->fi_cfoff >= ip->i_size || err == Z_STREAM_END)
/opensolaris-onvv-gate/usr/src/uts/common/fs/udfs/
H A Dudf_bmap.c113 if ((error = ud_read_icb_till_off(ip, ip->i_size)) == 0) {
143 if ((error = ud_read_icb_till_off(ip, ip->i_size)) == 0) {
238 if (ip->i_size != 0) {
239 error = fbread(ITOV(ip), 0, ip->i_size, S_OTHER, &fbp);
278 if ((PCEIL(ip->i_size) < PBASE(off)) &&
279 ((PBASE(off) - PCEIL(ip->i_size)) >= PAGESIZE)) {
281 if (ip->i_size != 0) {
298 * Allocate a hole from PCEIL(ip->i_size) to PBASE(off)
301 count = PBASE(off) - PCEIL(ip->i_size);
368 if (ud_read_icb_till_off(ip, ip->i_size) !
[all...]
H A Dudf_inode.c606 ip->i_size = SWAP_64(fe->fe_info_len);
1207 fe->fe_info_len = SWAP_64(ip->i_size);
1243 crc_len += ip->i_size;
1244 fe->fe_len_adesc = SWAP_32(((uint32_t)ip->i_size));
1245 } else if ((ip->i_size != 0) && (ip->i_ext != NULL) &&
1249 ip->i_size)) == 0) {
1582 if (length == oip->i_size) {
1592 if (length > oip->i_size) {
1605 u_offset_t osize = oip->i_size;
1606 oip->i_size
[all...]
H A Dudf_vnops.c383 uiop->uio_loffset = ip->i_size;
428 vap->va_size = ip->i_size;
442 vap->va_size = ip->i_size;
779 if (ip->i_size == 0) {
1113 dirsiz = ip->i_size;
1387 size = ip->i_size;
1684 beyond_eof = uoff + len > ip->i_size + PAGEOFFSET;
1732 (offset < ip->i_size)) {
1740 if ((offset + blk_size) > ip->i_size) {
1741 count = ip->i_size
[all...]
H A Dudf_dir.c196 end = dirsize = dip->i_size;
777 if ((slot.offset + FID_LEN(fid)) == dp->i_size) {
900 dirsize = tdp->i_size;
1000 slotp->size = tdp->i_max_emb - tdp->i_size;
1034 if (ip->i_size == 0) {
1042 for (off = 0; off < ip->i_size; off += entry_len) {
1375 ip->i_size = sizeof (struct file_id);
1380 iext->ib_count = ip->i_size;
1384 ip->i_size = sizeof (struct file_id);
1666 old_size = (uint32_t)dp->i_size;
[all...]
/opensolaris-onvv-gate/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c238 if (ip->i_size == 0) {
294 if (dirp->loc >= ip->i_size) {
308 if (udp->d_reclen == 0 && dirp->loc <= ip->i_size) {
336 diff = ip->i_size - filep->fi_offset;
384 if (filep->fi_offset - off + size >= ip->i_size)
418 if (filep->fi_offset + count > ip->i_size)
419 count = ip->i_size - filep->fi_offset;
641 stp->st_size = ip->i_size;
967 ip->i_size = hsdep->hs_dir.ext_size;
/opensolaris-onvv-gate/usr/src/uts/common/sys/fs/
H A Dufs_inode.h234 * to load and store the long long values of i_size. Therefore the
235 * address of i_size must be eight byte aligned. Kmem_alloc of incore
292 #define i_size i_ic.ic_lsize macro
534 * of an inode's i_size, which is a long long data type.
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); \
/opensolaris-onvv-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c339 if (ip->i_size == 0)
417 if (dstuff->loc >= filep->fi_inode->i_size) {
466 diff = filep->fi_inode->i_size - filep->fi_offset;
529 if (filep->fi_offset - off + size >= filep->fi_inode->i_size)
560 if (filep->fi_offset + count > filep->fi_inode->i_size)
561 count = filep->fi_inode->i_size - filep->fi_offset;
781 stp->st_size = ip->i_size;

Completed in 264 milliseconds

12