/external/e2fsprogs/debugfs/ |
H A D | lsdel.c | 34 ext2_ino_t inode; member in struct:lsdel_struct 80 struct ext2_inode inode; local 120 "while opening inode scan"); 125 retval = ext2fs_get_next_inode(scan, &ino, &inode); 129 "while starting inode scan"); 134 if ((inode.i_dtime == 0) || 135 (secs && ((unsigned) abs(now - secs) > inode.i_dtime))) 138 lsd.inode = ino; 165 delarray[num_delarray].mode = inode.i_mode; 166 delarray[num_delarray].uid = inode_uid(inode); [all...] |
H A D | ncheck.c | 45 struct ext2_inode inode; local 54 if (iw->iarray[i] == dirent->inode) { 61 "while calling ext2fs_get_pathname for inode #%u", iw->dir); 74 if (!debugfs_read_inode(dirent->inode, &inode, 76 filetype != ext2_file_type(inode.i_mode)) { 95 struct ext2_inode inode; local 116 com_err(argv[0], 0, "Usage: ncheck [-c] <inode number> ..."); 125 "while allocating inode number array"); 133 com_err(argv[0], 0, "Bad inode [all...] |
H A D | htree.c | 32 struct ext2_inode *inode, 47 errcode = ext2fs_bmap2(fs, ino, inode, buf, 0, blk, 0, &pblk); 94 dirent->inode, hash, minor_hash, rec_len, name); 109 struct ext2_inode *inode, 115 struct ext2_inode *inode, 147 htree_dump_int_block(fs, ino, inode, rootnode, 150 htree_dump_leaf_node(fs, ino, inode, rootnode, 158 struct ext2_inode *inode, 172 errcode = ext2fs_bmap2(fs, ino, inode, buf, 0, blk, 0, &pblk); 186 htree_dump_int_node(fs, ino, inode, rootnod 31 htree_dump_leaf_node(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, struct ext2_dx_root_info * rootnode, blk64_t blk, char *buf) argument 114 htree_dump_int_node(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, struct ext2_dx_root_info * rootnode, struct ext2_dx_entry *ent, char *buf, int level) argument 157 htree_dump_int_block(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, struct ext2_dx_root_info * rootnode, blk64_t blk, char *buf, int level) argument 198 struct ext2_inode inode; local 331 ext2_ino_t inode; local [all...] |
H A D | util.c | 106 * an inode. 117 * inode number. 175 * This routine returns 1 if a filesystem is doesn't have its inode 345 * argument which is a file/inode number specifier. 348 ext2_ino_t *inode, int flags) 353 *inode = string_to_inode(argv[1]); 354 if (!*inode) 386 int debugfs_read_inode_full(ext2_ino_t ino, struct ext2_inode * inode, argument 391 retval = ext2fs_read_inode_full(current_fs, ino, inode, bufsize); 393 com_err(cmd, retval, "while reading inode 347 common_inode_args_process(int argc, char *argv[], ext2_ino_t *inode, int flags) argument 399 debugfs_read_inode(ext2_ino_t ino, struct ext2_inode * inode, const char *cmd) argument 412 debugfs_write_inode_full(ext2_ino_t ino, struct ext2_inode *inode, const char *cmd, int bufsize) argument 428 debugfs_write_inode(ext2_ino_t ino, struct ext2_inode * inode, const char *cmd) argument 441 debugfs_write_new_inode(ext2_ino_t ino, struct ext2_inode * inode, const char *cmd) argument [all...] |
H A D | zap.c | 31 ext2_ino_t inode; local 127 inode = string_to_inode(file); 128 if (!inode) 130 errcode = ext2fs_bmap2(current_fs, inode, 0, 0, 0, 172 ext2_ino_t inode; local 197 com_err(0, 0, "Usage: block_dump [-f inode] block_num"); 206 inode = string_to_inode(file); 207 if (!inode) 209 errcode = ext2fs_bmap2(current_fs, inode, 0, 0, 0,
|
H A D | filefrag.c | 128 static void filefrag(ext2_ino_t ino, struct ext2_inode *inode, argument 134 fs->logical_width = int_log10((EXT2_I_SIZE(inode) + blocksize - 1) / 145 blk64_t num_blocks = ext2fs_inode_i_blocks(current_fs, inode); 149 !(inode->i_flags & EXT4_HUGE_FILE_FL)) 153 fs->name, num_blocks, EXT2_I_SIZE(inode)); 164 LINUX_S_ISDIR(inode->i_mode) ? " (dir)" : ""); 176 struct ext2_inode inode; variable in typeref:struct:ext2_inode 188 ino = dirent->inode; 203 if (debugfs_read_inode(ino, &inode, fs->name)) 206 filefrag(ino, &inode, f 264 struct ext2_inode inode; local [all...] |
/external/e2fsprogs/lib/quota/ |
H A D | quotaio.c | 114 struct ext2_inode inode; local 117 if ((err = ext2fs_read_inode(fs, ino, &inode))) 121 inode.i_dtime = fs->now ? fs->now : time(0); 122 if (!ext2fs_inode_has_valid_blocks2(fs, &inode)) 124 err = ext2fs_punch(fs, ino, &inode, NULL, 0, ~0ULL); 128 memset(&inode, 0, sizeof(struct ext2_inode)); 130 inode.i_flags &= ~EXT2_IMMUTABLE_FL; 132 err = ext2fs_write_inode(fs, ino, &inode); 169 /* Correct inode.i_size is set in end_io. */ 248 struct ext2_inode inode; local [all...] |
H A D | mkquota.h | 47 void quota_data_inodes(quota_ctx_t qctx, struct ext2_inode *inode, ext2_ino_t ino, 49 void quota_data_add(quota_ctx_t qctx, struct ext2_inode *inode, ext2_ino_t ino, 51 void quota_data_sub(quota_ctx_t qctx, struct ext2_inode *inode, ext2_ino_t ino,
|
/external/e2fsprogs/lib/ext2fs/ |
H A D | ext2_ext_attr.h | 60 extern int ext2_get_ext_attr(struct inode *, const char *, char *, size_t, int); 61 extern int ext2_set_ext_attr(struct inode *, const char *, char *, size_t, int); 62 extern void ext2_ext_attr_free_inode(struct inode *inode);
|
H A D | bitops.h | 70 extern int ext2fs_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode); 72 ext2_ino_t inode); 73 extern int ext2fs_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode); 83 ext2_ino_t inode); 85 ext2_ino_t inode); 87 ext2_ino_t inode); 109 ino_t inode, int num); 133 ext2_ino_t inode); 135 ext2_ino_t inode); 137 ext2_ino_t inode); 399 ext2fs_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 406 ext2fs_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 413 ext2fs_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 439 ext2fs_fast_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 445 ext2fs_fast_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 451 ext2fs_fast_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 518 ext2fs_mark_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 525 ext2fs_unmark_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 532 ext2fs_test_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 558 ext2fs_fast_mark_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 564 ext2fs_fast_unmark_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 570 ext2fs_fast_test_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument [all...] |
H A D | bmove.c | 30 struct ext2_inode * inode; member in struct:process_block_struct 102 struct ext2_inode inode; local 137 retval = ext2fs_get_next_inode(scan, &ino, &inode); 142 if ((inode.i_links_count == 0) || 143 !ext2fs_inode_has_valid_blocks2(fs, &inode)) 147 pb.inode = &inode; 149 pb.add_dir = (LINUX_S_ISDIR(inode.i_mode) && 160 retval = ext2fs_get_next_inode(scan, &ino, &inode);
|
H A D | fileio.c | 26 struct ext2_inode inode; member in struct:ext2_file 37 struct ext2_inode *inode, 61 if (inode) { 62 memcpy(&file->inode, inode, sizeof(struct ext2_inode)); 64 retval = ext2fs_read_inode(fs, ino, &file->inode); 100 * This function returns the pointer to the inode of a file from the structure 106 return &file->inode; 109 /* This function returns the inode number from the structure */ 138 retval = ext2fs_bmap2(fs, file->ino, &file->inode, 36 ext2fs_file_open2(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, int flags, ext2_file_t *ret) argument [all...] |
H A D | jfs_compat.h | 25 struct inode; 43 struct inode * j_inode;
|
H A D | read_bb.c | 2 * read_bb --- read the bad blocks inode 62 * Reads the current bad blocks from the bad blocks inode. 68 struct ext2_inode inode; local 74 retval = ext2fs_read_inode(fs, EXT2_BAD_INO, &inode); 77 numblocks = inode.i_blocks; 80 (inode.i_flags & EXT4_HUGE_FILE_FL)))
|
H A D | expanddir.c | 94 struct ext2_inode inode; local 122 * Update the size and block count fields in the inode. 124 retval = ext2fs_read_inode(fs, dir, &inode); 128 inode.i_size += fs->blocksize; 129 ext2fs_iblk_add_blocks(fs, &inode, es.newblocks); 131 retval = ext2fs_write_inode(fs, dir, &inode);
|
H A D | punch.c | 2 * punch.c --- deallocate blocks allocated to an inode 47 static errcode_t ind_punch(ext2_filsys fs, struct ext2_inode *inode, argument 77 retval = ind_punch(fs, inode, block_buf + fs->blocksize, 99 return ext2fs_iblk_sub_blocks(fs, inode, freed); 102 static errcode_t ext2fs_punch_ind(ext2_filsys fs, struct ext2_inode *inode, argument 109 blk_t *bp = inode->i_block; 128 retval = ind_punch(fs, inode, block_buf, bp, level, 181 struct ext2_inode *inode, 204 retval = ext2fs_map_cluster_block(fs, ino, inode, 233 retval = ext2fs_map_cluster_block(fs, ino, inode, 180 punch_extent_blocks(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, blk64_t lfree_start, blk64_t free_start, __u32 free_count, int *freed) argument 248 ext2fs_punch_extent(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, blk64_t start, blk64_t end) argument 412 ext2fs_punch(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf, blk64_t start, blk64_t end) argument [all...] |
H A D | inode.c | 2 * inode.c --- utility routines to read and write inodes 116 * If fs->badblocks isn't set, then set it --- since the inode 266 * blocks in the inode table. 278 * If the inode table is missing, then obviously there are no 327 * read in more blocks from the current blockgroup's inode table. 354 * Do inode bad block processing, if necessary. 387 * that part of the inode table was used at one point; we want all 388 * zeros, which means that the inode table is pristine.) 405 struct ext2_inode *inode, int bufsize) 451 * Have we run out of space in the inode buffe 404 ext2fs_get_next_inode_full(ext2_inode_scan scan, ext2_ino_t *ino, struct ext2_inode *inode, int bufsize) argument 512 ext2fs_get_next_inode(ext2_inode_scan scan, ext2_ino_t *ino, struct ext2_inode *inode) argument 522 ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode, int bufsize) argument 624 ext2fs_read_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode) argument 631 ext2fs_write_inode_full(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode, int bufsize) argument 745 ext2fs_write_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument 756 ext2fs_write_new_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument 797 struct ext2_inode inode; local 820 struct ext2_inode inode; local [all...] |
/external/qemu/distrib/ext4_utils/src/ |
H A D | extent.c | 75 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 222 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 | ext4fixup.c | 40 /* The inode block count for a file/directory is in units of 512 byte blocks, 258 static int read_inode(int fd, unsigned int inum, struct ext4_inode *inode) argument 271 critical_error_errno("failed to seek to inode %d\n", inum); 274 len=read(fd, inode, sizeof(*inode)); 275 if (len != sizeof(*inode)) { 276 critical_error_errno("failed to read inode %d\n", inum); 346 * new_inodes_per_group, retrieve the inode bitmap, and make sure 362 printf("Warning: updated inode bitmap for block group %d\n", bg_num); 399 critical_error("Failed sanity check on new inode coun 453 get_direct_blocks(struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument 475 get_indirect_blocks(int fd, struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument 502 get_block_list_indirect(int fd, struct ext4_inode *inode, unsigned long long *block_list) argument 572 get_block_list_extents(int fd, struct ext4_inode *inode, unsigned long long *block_list) argument 595 struct ext4_inode inode; local 621 recurse_dir(int fd, struct ext4_inode *inode, char *dirbuf, int dirsize, int mode) argument [all...] |
H A D | allocate.h | 32 struct ext4_inode *get_inode(u32 inode); 33 struct ext4_xattr_header *get_xattr_block_for_inode(struct ext4_inode *inode); 42 void add_directory(u32 inode);
|
/external/e2fsprogs/e2fsck/ |
H A D | pass1b.c | 6 * than one inode. 16 * Pass1D is a reconciliation pass. For each inode with duplicate 62 ext2_ino_t inode; member in struct:inode_el 72 * This structure stores information about a particular inode which 81 struct ext2_inode inode; member in struct:dup_inode 120 struct ext2_inode *inode) 139 sizeof(struct inode_el), "inode element"); 140 ino_el->inode = ino; 150 sizeof(struct dup_inode), "duplicate inode header"); 159 di->inode 119 add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk64_t cluster, struct ext2_inode *inode) argument 264 struct ext2_inode *inode; member in struct:process_block_struct 272 struct ext2_inode inode; local [all...] |
H A D | scantest.c | 2 * scantest.c - test the speed of the inode scan routine 95 struct ext2_inode inode; local 97 printf(_("size of inode=%d\n"), sizeof(inode)); 113 com_err(argv[0], retval, _("while opening inode scan")); 116 retval = ext2fs_get_next_inode(scan, &ino, &inode); 118 com_err(argv[0], retval, _("while starting inode scan")); 122 if (!inode.i_links_count) 124 printf("%lu\n", inode.i_blocks); 126 retval = ext2fs_get_next_inode(scan, &ino, &inode); [all...] |
H A D | pass3.c | 76 pctx.errcode = e2fsck_allocate_inode_bitmap(fs, _("inode done bitmap"), 140 * This makes sure the root inode is present; if not, we ask if the 147 struct ext2_inode inode; local 155 * If the root inode is not a directory, die here. The 190 * Now let's create the actual data block for the inode 211 * Set up the inode structure 213 memset(&inode, 0, sizeof(inode)); 214 inode.i_mode = 040755; 215 inode 362 struct ext2_inode inode; local 510 struct ext2_inode inode; local 559 struct ext2_inode inode; local 790 struct ext2_inode inode; local [all...] |
/external/libcap-ng/libcap-ng-0.7/utils/ |
H A D | netcap.c | 163 unsigned long inode; local 191 inode = strtoul(s, NULL, 10); 198 node.inode = inode; 201 // We make one entry for each socket inode 253 unsigned long rxq, txq, time_len, retr, inode; local 275 &uid, &timeout, &inode, more); 276 if (list_find_inode(&l, inode)) 287 unsigned long rxq, txq, time_len, retr, inode; local 309 &uid, &timeout, &inode, mor 321 unsigned long rxq, txq, time_len, retr, inode; local 391 unsigned long sk, inode; local [all...] |