Home
last modified time | relevance | path

Searched refs:i_block (Results 1 – 25 of 31) sorted by relevance

12

/external/e2fsprogs/e2fsck/
Dpass1.c158 if (inode->i_block[i]) in e2fsck_pass1_check_device_inode()
208 (inode->i_block[0] < fs->super->s_first_data_block) || in e2fsck_pass1_check_symlink()
209 (inode->i_block[0] >= ext2fs_blocks_count(fs->super))) in e2fsck_pass1_check_symlink()
213 if (inode->i_block[i]) in e2fsck_pass1_check_symlink()
216 if (io_channel_read_blk64(fs->io, inode->i_block[0], 1, buf)) in e2fsck_pass1_check_symlink()
223 if (inode->i_size >= sizeof(inode->i_block)) in e2fsck_pass1_check_symlink()
226 len = strnlen((char *)inode->i_block, sizeof(inode->i_block)); in e2fsck_pass1_check_symlink()
227 if (len == sizeof(inode->i_block)) in e2fsck_pass1_check_symlink()
418 LINUX_S_ISLNK(inode->i_mode) || inode->i_block[0] == 0) in check_is_really_dir()
449 blk = inode->i_block[i]; in check_is_really_dir()
[all …]
Dsuper.c361 if (inode.i_block[i]) in check_resize_inode()
377 blk = inode.i_block[EXT2_DIND_BLOCK]; in check_resize_inode()
379 if (i != EXT2_DIND_BLOCK && inode.i_block[i]) in check_resize_inode()
Djournal.c290 memcpy(&j_inode->i_ext2.i_block[0], sb->s_jnl_blocks, in e2fsck_get_journal()
972 memcmp(inode.i_block, sb->s_jnl_blocks, EXT2_N_BLOCKS*4))) { in e2fsck_move_ext3_journal()
974 memcpy(sb->s_jnl_blocks, inode.i_block, in e2fsck_move_ext3_journal()
Dpass3.c219 inode.i_block[0] = blk; in check_root()
464 inode.i_block[0] = blk; in e2fsck_get_lost_and_found()
/external/e2fsprogs/ext2ed/
Dext2.descriptors88 __u32 i_block[0]; /* Pointers to blocks */
89 __u32 i_block[1]; /* Pointers to blocks */
90 __u32 i_block[2]; /* Pointers to blocks */
91 __u32 i_block[3]; /* Pointers to blocks */
92 __u32 i_block[4]; /* Pointers to blocks */
93 __u32 i_block[5]; /* Pointers to blocks */
94 __u32 i_block[6]; /* Pointers to blocks */
95 __u32 i_block[7]; /* Pointers to blocks */
96 __u32 i_block[8]; /* Pointers to blocks */
97 __u32 i_block[9]; /* Pointers to blocks */
[all …]
Dfile_com.c33 file_info.global_block_num=ptr->i_block [0]; in init_file_info()
34 file_info.global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_file_info()
517 return (file_info_ptr->inode_ptr->i_block [file_block]); in file_block_to_global_block()
523 return (return_indirect (file_info_ptr->inode_ptr->i_block [EXT2_IND_BLOCK],file_block)); in file_block_to_global_block()
529 return (return_dindirect (file_info_ptr->inode_ptr->i_block [EXT2_DIND_BLOCK],file_block)); in file_block_to_global_block()
534 return (return_tindirect (file_info_ptr->inode_ptr->i_block [EXT2_TIND_BLOCK],file_block)); in file_block_to_global_block()
Ddir_com.c60 info_ptr->global_block_num=ptr->i_block [0]; in init_dir_info()
61 info_ptr->global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_dir_info()
277 strcpy (temp2,(unsigned char *) &type_data.u.t_ext2_inode.i_block); in type_dir___cd()
Dinode_com.c256 wprintw (show_pad,"-> %s",(char *) &type_data.u.t_ext2_inode.i_block [0]); in type_ext2_inode___show()
/external/e2fsprogs/lib/ext2fs/
Dblock.c516 if (inode.i_block[i] || (flags & BLOCK_FLAG_APPEND)) { in ext2fs_block_iterate3()
517 blk64 = inode.i_block[i]; in ext2fs_block_iterate3()
520 inode.i_block[i] = (blk_t) blk64; in ext2fs_block_iterate3()
526 if (inode.i_block[EXT2_IND_BLOCK] || (flags & BLOCK_FLAG_APPEND)) { in ext2fs_block_iterate3()
527 ret |= block_iterate_ind(&inode.i_block[EXT2_IND_BLOCK], in ext2fs_block_iterate3()
533 if (inode.i_block[EXT2_DIND_BLOCK] || (flags & BLOCK_FLAG_APPEND)) { in ext2fs_block_iterate3()
534 ret |= block_iterate_dind(&inode.i_block[EXT2_DIND_BLOCK], in ext2fs_block_iterate3()
540 if (inode.i_block[EXT2_TIND_BLOCK] || (flags & BLOCK_FLAG_APPEND)) { in ext2fs_block_iterate3()
541 ret |= block_iterate_tind(&inode.i_block[EXT2_TIND_BLOCK], in ext2fs_block_iterate3()
Dsymlink.c54 fastlink = (target_len < sizeof(inode.i_block)); in ext2fs_symlink()
87 strcpy((char *)&inode.i_block, target); in ext2fs_symlink()
Dvalid_blk.c49 if (inode->i_size > 4 && inode->i_block[1] == 0) in ext2fs_inode_has_valid_blocks2()
Dres_gdt.c96 if ((dindir_blk = inode.i_block[EXT2_DIND_BLOCK])) { in ext2fs_create_resize_inode()
113 inode.i_block[EXT2_DIND_BLOCK] = dindir_blk; in ext2fs_create_resize_inode()
Dswapfs.c241 t->i_block[i] = ext2fs_swab32(f->i_block[i]); in ext2fs_swap_inode_full()
244 t->i_block[i] = f->i_block[i]; in ext2fs_swap_inode_full()
Dtst_inode_size.c63 check_field(i_block, 15 * 4); in main()
Dmkdir.c90 inode.i_block[0] = blk; in ext2fs_mkdir()
DAndroid.mk40 i_block.c \
Dextent.c217 eh = (struct ext3_extent_header *) &handle->inode->i_block[0]; in ext2fs_extent_open2()
220 if (handle->inode->i_block[i]) in ext2fs_extent_open2()
226 i = (sizeof(handle->inode->i_block) - sizeof(*eh)) / in ext2fs_extent_open2()
237 retval = ext2fs_extent_header_verify(eh, sizeof(handle->inode->i_block)); in ext2fs_extent_open2()
249 handle->path[0].buf = (char *) handle->inode->i_block; in ext2fs_extent_open2()
Dnamei.c68 pathname = (char *)&(ei.i_block[0]); in follow_link()
Dext2_fs.h376 __u32 i_block[EXT2_N_BLOCKS];/* Pointers to blocks */ member
424 __u32 i_block[EXT2_N_BLOCKS];/* Pointers to blocks */ member
Dpunch.c109 blk_t *bp = inode->i_block; in ext2fs_punch_ind()
/external/e2fsprogs/debugfs/
Ddebugfs.c823 (int) inode->i_size, (char *)inode->i_block); in internal_dump_inode()
828 if (inode->i_block[0]) { in internal_dump_inode()
829 major = (inode->i_block[0] >> 8) & 255; in internal_dump_inode()
830 minor = inode->i_block[0] & 255; in internal_dump_inode()
833 major = (inode->i_block[1] & 0xfff00) >> 8; in internal_dump_inode()
834 minor = ((inode->i_block[1] & 0xff) | in internal_dump_inode()
835 ((inode->i_block[1] >> 12) & 0xfff00)); in internal_dump_inode()
1272 modify_u32(argv[0], buf, decimal_format, &inode.i_block[i]); in do_modify_inode()
1275 &inode.i_block[EXT2_IND_BLOCK]); in do_modify_inode()
1277 &inode.i_block[EXT2_DIND_BLOCK]); in do_modify_inode()
[all …]
Dlogdump.c210 memcpy(&journal_inode.i_block[0], es->s_jnl_blocks, in do_logdump()
651 this = inode->i_block[i]; in dump_metadata_block()
662 show_indirect(out_file, "IND", inode->i_block[i++]); in dump_metadata_block()
663 show_indirect(out_file, "DIND", inode->i_block[i++]); in dump_metadata_block()
664 show_indirect(out_file, "TIND", inode->i_block[i++]); in dump_metadata_block()
Dset_fields.c176 { "block", &set_inode.i_block[0], NULL, 4, parse_uint, FLAG_ARRAY,
178 { "block[IND]", &set_inode.i_block[EXT2_IND_BLOCK], NULL, 4, parse_uint },
179 { "block[DIND]", &set_inode.i_block[EXT2_DIND_BLOCK], NULL, 4, parse_uint },
180 { "block[TIND]", &set_inode.i_block[EXT2_TIND_BLOCK], NULL, 4, parse_uint },
Ddump.c216 strcpy(buf, (char *) inode->i_block); in rdump_symlink()
/external/e2fsprogs/misc/
De2image.c318 blocks[i] = stashed_inode->i_block[i]; in meta_get_blocks()
1329 inode.i_block[EXT2_IND_BLOCK] || in write_raw_image_file()
1330 inode.i_block[EXT2_DIND_BLOCK] || in write_raw_image_file()
1331 inode.i_block[EXT2_TIND_BLOCK] || all_data) { in write_raw_image_file()

12