Searched refs:inode (Results 1 - 13 of 13) sorted by relevance

/system/extras/ext4_utils/
H A Dindirect.h22 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,
H A Dextent.h23 void inode_allocate_extents(struct ext4_inode *inode, u64 len);
25 struct ext4_inode *inode, u64 len, const char *filename);
26 u8 *inode_allocate_data_extents(struct ext4_inode *inode, u64 len,
H A Dcontents.c64 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
408 xattr_addto_inode(struct ext4_inode *inode, int name_index, const char *name, const void *value, size_t value_len) argument
427 xattr_addto_block(struct ext4_inode *inode, int name_index, const char *name, const void *value, size_t value_len) argument
454 struct ext4_inode *inode = get_inode(inode_num); local
[all...]
H A Dextent.c75 struct ext4_inode *inode, u64 len)
99 (struct ext4_extent_header *)&inode->i_block[0];
106 extent = (struct ext4_extent *)&inode->i_block[3];
109 (struct ext4_extent_header *)&inode->i_block[0];
117 (struct ext4_extent_idx *)&inode->i_block[3];
166 inode->i_flags |= EXT4_EXTENTS_FL;
167 inode->i_size_lo = len;
168 inode->i_size_high = len >> 32;
169 inode->i_blocks_lo = blocks;
170 inode
74 do_inode_allocate_extents( struct ext4_inode *inode, u64 len) argument
180 inode_allocate_data_extents(struct ext4_inode *inode, u64 len, u64 backing_len) argument
205 inode_allocate_file_extents(struct ext4_inode *inode, u64 len, const char *filename) argument
221 inode_allocate_extents(struct ext4_inode *inode, u64 len) argument
[all...]
H A Dindirect.c164 /* 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 Dext4fixup.c39 /* 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 Dallocate.h47 struct ext4_inode *get_inode(u32 inode);
48 struct ext4_xattr_header *get_xattr_block_for_inode(struct ext4_inode *inode);
57 void add_directory(u32 inode);
H A Dallocate.c51 struct ext4_inode *inode; member in struct:xattr_list_element
72 static struct ext4_xattr_header *xattr_list_find(struct ext4_inode *inode) argument
76 if (element->inode == inode)
82 static void xattr_list_insert(struct ext4_inode *inode, struct ext4_xattr_header *header) argument
85 element->inode = inode;
657 /* Returns an ext4_inode structure for an inode number */
658 struct ext4_inode *get_inode(u32 inode) argument
660 inode
669 get_xattr_block_for_inode(struct ext4_inode *inode) argument
702 u32 inode; local
725 u32 inode; local
743 add_directory(u32 inode) argument
[all...]
H A Dcontents.h30 u32 *inode; member in struct:dentry
H A Dext4.h25 #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...]
H A Dext4_utils.c336 struct ext4_inode *inode = get_inode(EXT4_RESIZE_INO); local
337 if (inode == NULL) {
338 error("failed to get resize inode");
355 inode_attach_resize(inode, reserve_inode_alloc);
357 inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR;
358 inode->i_links_count = 1;
363 /* Allocate the blocks to hold a journal inode and connect them to the
364 reserved journal inode */
367 struct ext4_inode *inode = get_inode(EXT4_JOURNAL_INO); local
368 if (inode
[all...]
H A Dmake_ext4fs.c72 Allocating blocks in the same block group as the file inode
85 u32 inode; local
96 inode = make_directory(root_inode, 0, NULL, 0);
97 *dentries.inode = inode;
98 inode_set_permissions(inode, dentries.mode,
110 inode_set_selinux(inode, secontext);
138 u32 inode; local
264 inode = make_directory(dir_inode, entries, dentries, dirs);
281 subdir_dir_path, inode, fs_config_fun
[all...]
/system/core/toolbox/
H A Dlsof.c104 long int inode; local
113 while (fscanf(maps, "%*x-%*x %*s %zx %s %ld %s\n", &offset, device, &inode,
116 if (inode == 0 || !strcmp(device, "00:00"))
121 "???", device, offset, inode, file);

Completed in 158 milliseconds