/system/extras/ext4_utils/ |
D | contents.c | 60 struct ext4_dir_entry_2 *prev, u32 inode, const char *name, in add_dentry() argument 79 dentry->inode = inode; in add_dentry() 98 struct ext4_inode *inode; in make_directory() local 124 inode = get_inode(inode_num); in make_directory() 125 if (inode == NULL) { in make_directory() 130 data = inode_allocate_data_extents(inode, len, len); in make_directory() 136 inode->i_mode = S_IFDIR; in make_directory() 137 inode->i_links_count = dirs + 2; in make_directory() 138 inode->i_flags |= aux_info.default_i_flags; in make_directory() 160 dentries[i].inode = &dentry->inode; in make_directory() [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 | 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 | ext4fixup.c | 257 static int read_inode(int fd, unsigned int inum, struct ext4_inode *inode) in read_inode() argument 273 len=read(fd, inode, sizeof(*inode)); in read_inode() 274 if (len != sizeof(*inode)) { in read_inode() 452 static int get_direct_blocks(struct ext4_inode *inode, unsigned long long *block_list, in get_direct_blocks() argument 460 while ((i < (inode->i_blocks_lo / sectors_per_block)) && (i < EXT4_NDIR_BLOCKS)) { in get_direct_blocks() 461 block_list[i] = inode->i_block[i]; in get_direct_blocks() 467 if ((inode->i_blocks_lo / sectors_per_block) > EXT4_NDIR_BLOCKS) { in get_direct_blocks() 474 static int get_indirect_blocks(int fd, struct ext4_inode *inode, in get_indirect_blocks() argument 488 read_block(fd, inode->i_block[EXT4_NDIR_BLOCKS], indirect_block); in get_indirect_blocks() 490 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 | allocate.c | 64 struct ext4_inode *inode; member 83 static struct ext4_xattr_header *xattr_list_find(struct ext4_inode *inode) in xattr_list_find() argument 87 if (element->inode == inode) in xattr_list_find() 93 static void xattr_list_insert(struct ext4_inode *inode, struct ext4_xattr_header *header) in xattr_list_insert() argument 96 element->inode = inode; in xattr_list_insert() 690 struct ext4_inode *get_inode(u32 inode) in get_inode() argument 692 inode -= 1; in get_inode() 693 int bg = inode / info.inodes_per_group; in get_inode() 694 inode %= info.inodes_per_group; in get_inode() 697 return (struct ext4_inode *)(aux_info.bgs[bg].inode_table + inode * in get_inode() [all …]
|
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 | allocate.h | 34 struct ext4_inode *get_inode(u32 inode); 35 struct ext4_xattr_header *get_xattr_block_for_inode(struct ext4_inode *inode); 44 void add_directory(u32 inode);
|
D | ext4_utils.c | 303 struct ext4_inode *inode = get_inode(EXT4_RESIZE_INO); in ext4_create_resize_inode() local 304 if (inode == NULL) { in ext4_create_resize_inode() 322 inode_attach_resize(inode, reserve_inode_alloc); in ext4_create_resize_inode() 324 inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR; in ext4_create_resize_inode() 325 inode->i_links_count = 1; in ext4_create_resize_inode() 334 struct ext4_inode *inode = get_inode(EXT4_JOURNAL_INO); in ext4_create_journal_inode() local 335 if (inode == NULL) { in ext4_create_journal_inode() 340 u8 *journal_data = inode_allocate_data_extents(inode, in ext4_create_journal_inode() 348 inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR; in ext4_create_journal_inode() 349 inode->i_links_count = 1; in ext4_create_journal_inode() [all …]
|
D | make_ext4fs.c | 83 u32 inode; in build_default_directory_structure() local 94 inode = make_directory(root_inode, 0, NULL, 0); in build_default_directory_structure() 95 *dentries.inode = inode; in build_default_directory_structure() 96 inode_set_permissions(inode, dentries.mode, in build_default_directory_structure() 120 u32 inode; in build_directory_structure() local 242 inode = make_directory(dir_inode, entries, dentries, dirs); in build_directory_structure() 259 subdir_dir_path, inode, fs_config_func, sehnd, verbose); in build_directory_structure() 268 *dentries[i].inode = entry_inode; in build_directory_structure() 298 return inode; in build_directory_structure()
|
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()
|