Searched refs:inode (Results 1 - 14 of 14) 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);
24 void inode_allocate_file_extents(struct ext4_inode *inode, u64 len,
26 u8 *inode_allocate_data_extents(struct ext4_inode *inode, u64 len,
H A Dcontents.c60 struct ext4_dir_entry_2 *prev, u32 inode, const char *name,
79 dentry->inode = inode;
90 and stores the location of the structure in an inode. The new inode's
91 .. link is set to dir_inode_num. Stores the location of the inode number
92 of each directory entry into dentries[i].inode, to be filled in later
93 when the inode for the entry is allocated. Returns the inode number of the
98 struct ext4_inode *inode; local
59 add_dentry(u8 *data, u32 *offset, struct ext4_dir_entry_2 *prev, u32 inode, const char *name, u8 file_type) argument
176 struct ext4_inode *inode; local
204 struct ext4_inode *inode; local
239 struct ext4_inode *inode = get_inode(inode_num); local
398 xattr_addto_inode(struct ext4_inode *inode, int name_index, const char *name, const void *value, size_t value_len) argument
417 xattr_addto_block(struct ext4_inode *inode, int name_index, const char *name, const void *value, size_t value_len) argument
444 struct ext4_inode *inode = get_inode(inode_num); local
[all...]
H A Dext4_jbd2.h17 #define EXT4_JOURNAL(inode) (EXT4_SB((inode)->i_sb)->s_journal)
44 #define ext4_forget(handle, is_metadata, inode, bh, block_nr) __ext4_forget(__func__, (handle), (is_metadata), (inode), (bh), (block_nr))
46 #define ext4_handle_dirty_metadata(handle, inode, bh) __ext4_handle_dirty_metadata(__func__, (handle), (inode), (bh))
H A Dextent.c76 struct ext4_inode *inode, u64 len)
100 (struct ext4_extent_header *)&inode->i_block[0];
107 extent = (struct ext4_extent *)&inode->i_block[3];
110 (struct ext4_extent_header *)&inode->i_block[0];
118 (struct ext4_extent_idx *)&inode->i_block[3];
167 inode->i_flags |= EXT4_EXTENTS_FL;
168 inode->i_size_lo = len;
169 inode->i_size_high = len >> 32;
170 inode->i_blocks_lo = blocks;
171 inode
75 do_inode_allocate_extents( struct ext4_inode *inode, u64 len) argument
181 inode_allocate_data_extents(struct ext4_inode *inode, u64 len, u64 backing_len) argument
206 inode_allocate_file_extents(struct ext4_inode *inode, u64 len, const char *filename) argument
223 inode_allocate_extents(struct ext4_inode *inode, u64 len) argument
[all...]
H A Dindirect.c166 /* Given an allocation, attach as many blocks as possible to direct inode
168 static int inode_attach_direct_blocks(struct ext4_inode *inode, argument
175 inode->i_block[i] = get_block(alloc, i);
191 static int inode_attach_indirect_blocks(struct ext4_inode *inode, argument
197 inode->i_block[EXT4_IND_BLOCK] = ind_block;
223 static int inode_attach_dindirect_blocks(struct ext4_inode *inode, argument
229 inode->i_block[EXT4_DIND_BLOCK] = dind_block;
255 static int inode_attach_tindirect_blocks(struct ext4_inode *inode, argument
261 inode->i_block[EXT4_TIND_BLOCK] = tind_block;
348 static int do_inode_attach_indirect(struct ext4_inode *inode, argument
405 inode_allocate_indirect(struct ext4_inode *inode, unsigned long len) argument
430 inode_attach_resize(struct ext4_inode *inode, struct block_allocation *alloc) argument
490 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,
257 static int read_inode(int fd, unsigned int inum, struct ext4_inode *inode) argument
270 critical_error_errno("failed to seek to inode %d\n", inum);
273 len=read(fd, inode, sizeof(*inode));
274 if (len != sizeof(*inode)) {
275 critical_error_errno("failed to read inode %d\n", inum);
345 * new_inodes_per_group, retrieve the inode bitmap, and make sure
361 printf("Warning: updated inode bitmap for block group %d\n", bg_num);
398 critical_error("Failed sanity check on new inode coun
452 get_direct_blocks(struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument
474 get_indirect_blocks(int fd, struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument
501 get_block_list_indirect(int fd, struct ext4_inode *inode, unsigned long long *block_list) argument
571 get_block_list_extents(int fd, struct ext4_inode *inode, unsigned long long *block_list) argument
594 struct ext4_inode inode; local
620 recurse_dir(int fd, struct ext4_inode *inode, char *dirbuf, int dirsize, int mode) argument
[all...]
H A Dallocate.h34 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);
H A Dallocate.c64 struct ext4_inode *inode; member in struct:xattr_list_element
83 static struct ext4_xattr_header *xattr_list_find(struct ext4_inode *inode) argument
87 if (element->inode == inode)
93 static void xattr_list_insert(struct ext4_inode *inode, struct ext4_xattr_header *header) argument
96 element->inode = inode;
689 /* Returns an ext4_inode structure for an inode number */
690 struct ext4_inode *get_inode(u32 inode) argument
692 inode
701 get_xattr_block_for_inode(struct ext4_inode *inode) argument
734 u32 inode; local
757 u32 inode; local
775 add_directory(u32 inode) argument
[all...]
H A Dext4_utils.c303 struct ext4_inode *inode = get_inode(EXT4_RESIZE_INO); local
304 if (inode == NULL) {
305 error("failed to get resize inode");
322 inode_attach_resize(inode, reserve_inode_alloc);
324 inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR;
325 inode->i_links_count = 1;
330 /* Allocate the blocks to hold a journal inode and connect them to the
331 reserved journal inode */
334 struct ext4_inode *inode = get_inode(EXT4_JOURNAL_INO); local
335 if (inode
[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 Dmake_ext4fs.c71 Allocating blocks in the same block group as the file inode
83 u32 inode; local
94 inode = make_directory(root_inode, 0, NULL, 0);
95 *dentries.inode = inode;
96 inode_set_permissions(inode, dentries.mode,
120 u32 inode; local
242 inode = make_directory(dir_inode, entries, dentries, dirs);
259 subdir_dir_path, inode, fs_config_func, sehnd, verbose);
268 *dentries[i].inode
[all...]
/system/core/toolbox/
H A Dlsof.c107 long int inode; local
116 while (fscanf(maps, "%*x-%*x %*s %zx %5s %ld %s\n", &offset, device, &inode,
119 if (inode == 0 || !strcmp(device, "00:00"))
124 "???", device, offset, inode, file);

Completed in 45 milliseconds