/system/extras/ext4_utils/ |
D | contents.c | 51 struct ext4_dir_entry_2 *prev, u32 inode, const char *name, in add_dentry() argument 70 dentry->inode = inode; in add_dentry() 89 struct ext4_inode *inode; in make_directory() local 115 inode = get_inode(inode_num); in make_directory() 116 if (inode == NULL) { in make_directory() 121 data = inode_allocate_data_extents(inode, len, len); in make_directory() 127 inode->i_mode = S_IFDIR; in make_directory() 128 inode->i_links_count = dirs + 2; in make_directory() 129 inode->i_flags |= aux_info.default_i_flags; in make_directory() 151 dentries[i].inode = &dentry->inode; in make_directory() [all …]
|
D | indirect.c | 168 static int inode_attach_direct_blocks(struct ext4_inode *inode, in inode_attach_direct_blocks() argument 175 inode->i_block[i] = get_block(alloc, i); in inode_attach_direct_blocks() 191 static int inode_attach_indirect_blocks(struct ext4_inode *inode, in inode_attach_indirect_blocks() argument 197 inode->i_block[EXT4_IND_BLOCK] = ind_block; in inode_attach_indirect_blocks() 223 static int inode_attach_dindirect_blocks(struct ext4_inode *inode, in inode_attach_dindirect_blocks() argument 229 inode->i_block[EXT4_DIND_BLOCK] = dind_block; in inode_attach_dindirect_blocks() 255 static int inode_attach_tindirect_blocks(struct ext4_inode *inode, in inode_attach_tindirect_blocks() argument 261 inode->i_block[EXT4_TIND_BLOCK] = tind_block; in inode_attach_tindirect_blocks() 348 static int do_inode_attach_indirect(struct ext4_inode *inode, in do_inode_attach_indirect() argument 353 if (inode_attach_direct_blocks(inode, alloc, &count)) { in do_inode_attach_indirect() [all …]
|
D | extent.c | 76 struct ext4_inode *inode, u64 len) in do_inode_allocate_extents() argument 100 (struct ext4_extent_header *)&inode->i_block[0]; in do_inode_allocate_extents() 107 extent = (struct ext4_extent *)&inode->i_block[3]; in do_inode_allocate_extents() 110 (struct ext4_extent_header *)&inode->i_block[0]; in do_inode_allocate_extents() 118 (struct ext4_extent_idx *)&inode->i_block[3]; in do_inode_allocate_extents() 167 inode->i_flags |= EXT4_EXTENTS_FL; in do_inode_allocate_extents() 168 inode->i_size_lo = len; in do_inode_allocate_extents() 169 inode->i_size_high = len >> 32; in do_inode_allocate_extents() 170 inode->i_blocks_lo = blocks; in do_inode_allocate_extents() 171 inode->osd2.linux2.l_i_blocks_high = blocks >> 32; in do_inode_allocate_extents() [all …]
|
D | ext4fixup.c | 258 static int read_inode(int fd, unsigned int inum, struct ext4_inode *inode) in read_inode() argument 274 len=read(fd, inode, sizeof(*inode)); in read_inode() 275 if (len != sizeof(*inode)) { in read_inode() 453 static int get_direct_blocks(struct ext4_inode *inode, unsigned long long *block_list, in get_direct_blocks() argument 461 while ((i < (inode->i_blocks_lo / sectors_per_block)) && (i < EXT4_NDIR_BLOCKS)) { in get_direct_blocks() 462 block_list[i] = inode->i_block[i]; in get_direct_blocks() 468 if ((inode->i_blocks_lo / sectors_per_block) > EXT4_NDIR_BLOCKS) { in get_direct_blocks() 475 static int get_indirect_blocks(int fd, struct ext4_inode *inode, in get_indirect_blocks() argument 489 read_block(fd, inode->i_block[EXT4_NDIR_BLOCKS], indirect_block); in get_indirect_blocks() 491 for(i = 0; i < (inode->i_blocks_lo / sectors_per_block - EXT4_NDIR_BLOCKS); i++) { in get_indirect_blocks() [all …]
|
D | ext4_jbd2.h | 17 #define EXT4_JOURNAL(inode) (EXT4_SB((inode)->i_sb)->s_journal) argument 44 …ine ext4_forget(handle, is_metadata, inode, bh, block_nr) __ext4_forget(__func__, (handle), (is_… argument 46 …define ext4_handle_dirty_metadata(handle, inode, bh) __ext4_handle_dirty_metadata(__func__, (han… argument
|
D | indirect.h | 22 void inode_allocate_indirect(struct ext4_inode *inode, unsigned long len); 23 u8 *inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len, 25 void inode_attach_resize(struct ext4_inode *inode,
|
D | extent.h | 23 void inode_allocate_extents(struct ext4_inode *inode, u64 len); 24 void inode_allocate_file_extents(struct ext4_inode *inode, u64 len, 26 u8 *inode_allocate_data_extents(struct ext4_inode *inode, u64 len,
|
D | ext4.h | 25 #define EXT4_ERROR_INODE(inode, fmt, a...) ext4_error_inode(__func__, (inode), (fmt), ## a); argument 63 struct inode *inode; member 306 …inode, raw_inode) do { (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); if (EXT4_FITS… argument 308 …inode, raw_inode) do { (inode)->xtime.tv_sec = (signed)le32_to_cpu((raw_inode)->xtime); if (E… argument 455 #define NEXT_ORPHAN(inode) EXT4_I(inode)->i_dtime argument 535 __le32 inode; member 542 __le32 inode; member
|
D | ext4_utils.c | 301 struct ext4_inode *inode = get_inode(EXT4_RESIZE_INO); in ext4_create_resize_inode() local 302 if (inode == NULL) { in ext4_create_resize_inode() 320 inode_attach_resize(inode, reserve_inode_alloc); in ext4_create_resize_inode() 322 inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR; in ext4_create_resize_inode() 323 inode->i_links_count = 1; in ext4_create_resize_inode() 332 struct ext4_inode *inode = get_inode(EXT4_JOURNAL_INO); in ext4_create_journal_inode() local 333 if (inode == NULL) { in ext4_create_journal_inode() 338 u8 *journal_data = inode_allocate_data_extents(inode, in ext4_create_journal_inode() 346 inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR; in ext4_create_journal_inode() 347 inode->i_links_count = 1; in ext4_create_journal_inode() [all …]
|
D | allocate.c | 679 struct ext4_inode *get_inode(u32 inode) in get_inode() argument 681 inode -= 1; in get_inode() 682 int bg = inode / info.inodes_per_group; in get_inode() 683 inode %= info.inodes_per_group; in get_inode() 686 return (struct ext4_inode *)(aux_info.bgs[bg].inode_table + inode * in get_inode() 694 u32 inode; in reserve_inodes() local 700 inode = aux_info.bgs[bg].first_free_inode + i - 1; in reserve_inodes() 701 aux_info.bgs[bg].inode_bitmap[inode / 8] |= 1 << (inode % 8); in reserve_inodes() 704 inode = aux_info.bgs[bg].first_free_inode; in reserve_inodes() 709 return inode; in reserve_inodes() [all …]
|
D | make_ext4fs.c | 79 u32 inode; in build_default_directory_structure() local 90 inode = make_directory(root_inode, 0, NULL, 0); in build_default_directory_structure() 91 *dentries.inode = inode; in build_default_directory_structure() 92 inode_set_permissions(inode, dentries.mode, in build_default_directory_structure() 111 u32 inode; in build_directory_structure() local 238 inode = make_directory(dir_inode, entries, dentries, dirs); in build_directory_structure() 245 dentries[i].path, inode, fs_config_func, sehnd); in build_directory_structure() 252 *dentries[i].inode = entry_inode; in build_directory_structure() 271 return inode; in build_directory_structure()
|
D | allocate.h | 33 struct ext4_inode *get_inode(u32 inode); 42 void add_directory(u32 inode);
|
D | contents.h | 30 u32 *inode; member
|
/system/core/toolbox/ |
D | lsof.c | 107 long int inode; in print_maps() local 116 while (fscanf(maps, "%*x-%*x %*s %zx %5s %ld %s\n", &offset, device, &inode, in print_maps() 119 if (inode == 0 || !strcmp(device, "00:00")) in print_maps() 124 "???", device, offset, inode, file); in print_maps()
|