Home
last modified time | relevance | path

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

123

/external/grub/stage2/
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()
Ddisk_inode_ffs.h60 #define i_size ic_size.val[1] macro
62 #define i_size ic_size.val[0] macro
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()
Dfsys_ext2fs.c101 __u32 i_size; /* 4: Size in bytes */ member
617 filemax = (INODE->i_size); in ext2fs_dir()
678 filemax = (INODE->i_size); in ext2fs_dir()
690 if (!(INODE->i_size) || !S_ISDIR (INODE->i_mode)) in ext2fs_dir()
714 if (loc >= INODE->i_size) in ext2fs_dir()
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))))
Dfs.h434 (((lbn) >= NDADDR || (ip)->i_size >= ((lbn) + 1) << (fs)->fs_bshift) \
436 : (fragroundup(fs, blkoff(fs, (ip)->i_size))))
/external/kernel-headers/original/linux/
Dfs.h509 loff_t i_size; member
597 loff_t i_size; in i_size_read() local
602 i_size = inode->i_size; in i_size_read()
604 return i_size; in i_size_read()
606 loff_t i_size; in i_size_read()
609 i_size = inode->i_size; in i_size_read()
611 return i_size; in i_size_read()
613 return inode->i_size; in i_size_read()
618 static inline void i_size_write(struct inode *inode, loff_t i_size) in i_size_write() argument
622 inode->i_size = i_size; in i_size_write()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dvalid_blk.c48 if (inode->i_size >= EXT2_N_BLOCKS*4) in ext2fs_inode_has_valid_blocks()
50 if (inode->i_size > 4 && inode->i_block[1] == 0) in ext2fs_inode_has_valid_blocks()
Dres_gdt.c113 inode.i_size = inode_size & 0xFFFFFFFF; in ext2fs_create_resize_inode()
208 inode.i_size); in ext2fs_create_resize_inode()
/external/e2fsprogs/e2fsck/
Dmessage.c258 printf("%u", inode->i_size); in expand_inode_expression()
263 inode->i_size); in expand_inode_expression()
265 printf("%u", inode->i_size); in expand_inode_expression()
267 printf("%llu", inode->i_size | in expand_inode_expression()
Dpass1.c173 if ((inode->i_size_high || inode->i_size == 0) || in e2fsck_pass1_check_symlink()
179 if ((inode->i_size >= fs->blocksize) || in e2fsck_pass1_check_symlink()
196 if (inode->i_size >= sizeof(inode->i_block)) in e2fsck_pass1_check_symlink()
203 if (len != inode->i_size) in e2fsck_pass1_check_symlink()
233 if ((inode->i_size == 0) && (inode->i_size_high == 0)) in check_size()
239 inode->i_size = 0; in check_size()
1581 ((inode->i_size / fs->blocksize) >= 3)) in check_blocks()
1601 ino, inode->i_size, pb.last_block, inode->i_blocks, in check_blocks()
1605 int nblock = inode->i_size >> EXT2_BLOCK_SIZE_BITS(fs->super); in check_blocks()
1606 if (inode->i_size & (fs->blocksize - 1)) in check_blocks()
[all …]
Drehash.c98 if (offset + fs->blocksize > fd->inode->i_size) { in fill_dir_block()
670 inode.i_size = outdir->num * fs->blocksize; in write_directory()
693 dir_buf = malloc(inode.i_size); in e2fsck_rehash_dir()
697 fd.max_array = inode.i_size / 32; in e2fsck_rehash_dir()
710 (inode.i_size / fs->blocksize) < 2) in e2fsck_rehash_dir()
Djournal.c285 j_inode->i_ext2.i_size = sb->s_jnl_blocks[16]; in e2fsck_get_journal()
298 if (j_inode->i_ext2.i_size / journal->j_blocksize < in e2fsck_get_journal()
308 j_inode->i_ext2.i_size) { in e2fsck_get_journal()
319 journal->j_maxlen = j_inode->i_ext2.i_size / journal->j_blocksize; in e2fsck_get_journal()
921 sb->s_jnl_blocks[16] = inode.i_size; in e2fsck_move_ext3_journal()
/external/e2fsprogs/misc/
De2initrd_helper.c93 if (inode.i_size_high || (inode.i_size > 65536)) in get_file()
96 buf = malloc(inode.i_size + 1); in get_file()
99 memset(buf, 0, inode.i_size+1); in get_file()
105 retval = ext2fs_file_read(e2_file, buf, inode.i_size, &got); in get_file()
/external/kernel-headers/original/linux/nfsd/
Dnfsfh.h251 fhp->fh_pre_size = inode->i_size; in fill_pre_wcc()
271 fhp->fh_post_size = inode->i_size; in fill_post_wcc()
278 fhp->fh_post_blocks = (inode->i_size+511) >> 9; in fill_post_wcc()
/external/e2fsprogs/debugfs/
Dls.c93 fprintf(ls->f, "%5d", inode.i_size); in list_dir_proc()
95 fprintf(ls->f, "%5llu", inode.i_size | in list_dir_proc()
Ddump.c196 buf = malloc(inode->i_size + 1); in rdump_symlink()
207 unsigned bytes = inode->i_size; in rdump_symlink()
226 buf[inode->i_size] = 0; in rdump_symlink()
Ddebugfs.c544 unsigned long long i_size = (inode->i_size | in internal_dump_inode() local
547 fprintf(out, "%llu\n", i_size); in internal_dump_inode()
549 fprintf(out, "%d\n", inode->i_size); in internal_dump_inode()
597 (int) inode->i_size, (char *)inode->i_block); in internal_dump_inode()
873 modify_u32(argv[0], "Size", unsignedlong_format, &inode.i_size); in do_modify_inode()
1350 inode.i_size = statbuf.st_size; in do_write()
/external/yaffs2/yaffs2/
Dyaffs_fs.c564 if (offset > inode->i_size) { in yaffs_writepage()
569 (unsigned)inode->i_size)); in yaffs_writepage()
576 end_index = inode->i_size >> PAGE_CACHE_SHIFT; in yaffs_writepage()
582 nBytes = inode->i_size & (PAGE_CACHE_SIZE - 1); in yaffs_writepage()
597 (int)obj->variant.fileVariant.fileSize, (int)inode->i_size)); in yaffs_writepage()
605 (int)obj->variant.fileVariant.fileSize, (int)inode->i_size)); in yaffs_writepage()
723 inode->i_size = yaffs_GetObjectFileLength(obj); in yaffs_FillInodeFromObject()
724 inode->i_blocks = (inode->i_size + 511) >> 9; in yaffs_FillInodeFromObject()
732 (int)inode->i_size, atomic_read(&inode->i_count))); in yaffs_FillInodeFromObject()
817 ipos = inode->i_size; in yaffs_file_write()
[all …]
/external/e2fsprogs/tests/f_dupfsblks/
Dexpect.14 Inode 12, i_size is 4096, should be 5120. Fix? yes
6 Inode 13, i_size is 0, should be 2048. Fix? yes
/external/e2fsprogs/ext2ed/
Ddir_com.c66 info_ptr->blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_dir_info()
67 info_ptr->file_length=ptr->i_size; in init_dir_info()
270 if (type_data.u.t_ext2_inode.i_size > 60) { /* I'm lazy, I guess :-) */ in type_dir___cd()
/external/e2fsprogs/tests/f_big_sparse/
Dexpect.12 Inode 12, i_size is 61440, should be 4398050758656. Fix? yes
/external/e2fsprogs/tests/f_holedir/
Dexpect.17 Inode 11, i_size is 12288, should be 11264. Fix? yes
/external/e2fsprogs/tests/f_messy_inode/
Dexpect.115 Inode 14, i_size is 18446462598732849291, should be 2048. Fix? yes
/external/genext2fs/
Dgenext2fs.c482 udecl32(i_size) /* File/dir size in bytes */ \
1314 get_nod(fs, dnod)->i_size += BLOCKSIZE; in add2dir()
1425 get_nod(fs, nod)->i_size = size; in mklink_fs()
1442 get_nod(fs, nod)->i_size = size; in mkfile_fs()
1804 …if((nod->i_size && !nblk) || ((nod->i_mode & FM_IFBLK) == FM_IFBLK) || ((nod->i_mode & FM_IFCHR) =… in swap_goodblocks()
1861 …if((nod->i_size && !nblk) || ((nod->i_mode & FM_IFBLK) == FM_IFBLK) || ((nod->i_mode & FM_IFCHR) =… in swap_badblocks()
2083 itab0[EXT2_ROOT_INO-1].i_size = BLOCKSIZE; in init_fs()
2113 get_nod(fs, nod)->i_size = fs->sb.s_r_blocks_count * BLOCKSIZE; in init_fs()
2189 int32 fsize = get_nod(fs, nod)->i_size; in write_blocks()
2347 …printf("%s, size: %d byte%s (%d block%s)\n", perms, plural(get_nod(fs, nod)->i_size), plural(get_… in print_inode()
[all …]

123