/system/extras/ext4_utils/ |
H A D | contents.h | 30 u32 *inode; member in struct:dentry
|
H A D | extent.c | 75 struct ext4_inode *inode, u64 len, struct block_allocation *prealloc) 119 (struct ext4_extent_header *)&inode->i_block[0]; 126 extent = (struct ext4_extent *)&inode->i_block[3]; 129 (struct ext4_extent_header *)&inode->i_block[0]; 137 (struct ext4_extent_idx *)&inode->i_block[3]; 186 inode->i_flags |= EXT4_EXTENTS_FL; 187 inode->i_size_lo = len; 188 inode->i_size_high = len >> 32; 189 inode->i_blocks_lo = blocks; 190 inode 74 do_inode_allocate_extents( struct ext4_inode *inode, u64 len, struct block_allocation *prealloc) argument 200 inode_allocate_data_extents(struct ext4_inode *inode, u64 len, u64 backing_len) argument 225 inode_allocate_file_extents(struct ext4_inode *inode, u64 len, const char *filename) argument 258 inode_allocate_extents(struct ext4_inode *inode, u64 len) argument [all...] |
H A D | indirect.c | 164 /* Given an allocation, attach as many blocks as possible to direct inode 166 static int inode_attach_direct_blocks(struct ext4_inode *inode, argument 173 inode->i_block[i] = get_block(alloc, i); 189 static int inode_attach_indirect_blocks(struct ext4_inode *inode, argument 195 inode->i_block[EXT4_IND_BLOCK] = ind_block; 221 static int inode_attach_dindirect_blocks(struct ext4_inode *inode, argument 227 inode->i_block[EXT4_DIND_BLOCK] = dind_block; 253 static int inode_attach_tindirect_blocks(struct ext4_inode *inode, argument 259 inode->i_block[EXT4_TIND_BLOCK] = tind_block; 346 static int do_inode_attach_indirect(struct ext4_inode *inode, argument 403 inode_allocate_indirect(struct ext4_inode *inode, unsigned long len) argument 428 inode_attach_resize(struct ext4_inode *inode, struct block_allocation *alloc) argument 488 inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len, unsigned long backing_len) argument [all...] |
H A D | contents.c | 64 struct ext4_dir_entry_2 *prev, u32 inode, const char *name, 83 dentry->inode = inode; 94 and stores the location of the structure in an inode. The new inode's 95 .. link is set to dir_inode_num. Stores the location of the inode number 96 of each directory entry into dentries[i].inode, to be filled in later 97 when the inode for the entry is allocated. Returns the inode number of the 102 struct ext4_inode *inode; local 63 add_dentry(u8 *data, u32 *offset, struct ext4_dir_entry_2 *prev, u32 inode, const char *name, u8 file_type) argument 180 struct ext4_inode *inode; local 214 struct ext4_inode *inode; local 249 struct ext4_inode *inode = get_inode(inode_num); local 409 xattr_addto_inode(struct ext4_inode *inode, int name_index, const char *name, const void *value, size_t value_len) argument 428 xattr_addto_block(struct ext4_inode *inode, int name_index, const char *name, const void *value, size_t value_len) argument 455 struct ext4_inode *inode = get_inode(inode_num); local [all...] |
H A D | ext4_utils.c | 430 struct ext4_inode *inode = get_inode(EXT4_RESIZE_INO); local 431 if (inode == NULL) { 432 error("failed to get resize inode"); 449 inode_attach_resize(inode, reserve_inode_alloc); 451 inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR; 452 inode->i_links_count = 1; 457 /* Allocate the blocks to hold a journal inode and connect them to the 458 reserved journal inode */ 461 struct ext4_inode *inode = get_inode(EXT4_JOURNAL_INO); local 462 if (inode [all...] |
H A D | allocate.c | 26 struct ext4_inode *inode; member in struct:xattr_list_element 47 static struct ext4_xattr_header *xattr_list_find(struct ext4_inode *inode) argument 51 if (element->inode == inode) 57 static void xattr_list_insert(struct ext4_inode *inode, struct ext4_xattr_header *header) argument 60 element->inode = inode; 661 /* Returns an ext4_inode structure for an inode number */ 662 struct ext4_inode *get_inode(u32 inode) argument 664 inode 673 get_xattr_block_for_inode(struct ext4_inode *inode) argument 706 u32 inode; local 729 u32 inode; local 747 add_directory(u32 inode) argument [all...] |
H A D | ext4fixup.c | 39 /* The inode block count for a file/directory is in units of 512 byte blocks, 166 static int read_inode(int fd, unsigned int inum, struct ext4_inode *inode) argument 179 critical_error_errno("failed to seek to inode %d\n", inum); 182 len=read(fd, inode, sizeof(*inode)); 183 if (len != sizeof(*inode)) { 184 critical_error_errno("failed to read inode %d\n", inum); 239 * new_inodes_per_group, retrieve the inode bitmap, and make sure 255 printf("Warning: updated inode bitmap for block group %d\n", bg_num); 292 critical_error("Failed sanity check on new inode coun 352 get_direct_blocks(struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument 374 get_indirect_blocks(int fd, struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument 401 get_block_list_indirect(int fd, struct ext4_inode *inode, unsigned long long *block_list) argument 471 get_block_list_extents(int fd, struct ext4_inode *inode, unsigned long long *block_list) argument 494 struct ext4_inode inode; local 520 recurse_dir(int fd, struct ext4_inode *inode, char *dirbuf, int dirsize, int mode) argument [all...] |
H A D | make_ext4fs.c | 90 Allocating blocks in the same block group as the file inode 103 u32 inode; local 114 inode = make_directory(root_inode, 0, NULL, 0); 115 *dentries.inode = inode; 116 inode_set_permissions(inode, dentries.mode, 128 inode_set_selinux(inode, secontext); 156 u32 inode; local 292 inode = make_directory(dir_inode, entries, dentries, dirs); 309 inode, fs_config_fun [all...] |
H A D | ext4.h | 25 #define EXT4_ERROR_INODE(inode, fmt, a...) ext4_error_inode(__func__, (inode), (fmt), ## a); 63 struct inode *inode; member in struct:ext4_allocation_request 306 #define EXT4_INODE_SET_XTIME(xtime, inode, raw_inode) do { (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) (raw_inode)->xtime ## _extra = ext4_encode_extra_time(&(inode)->xtime); } while (0) 308 #define EXT4_INODE_GET_XTIME(xtime, inode, raw_inode) do { (inode) 535 __le32 inode; member in struct:ext4_dir_entry 542 __le32 inode; member in struct:ext4_dir_entry_2 [all...] |