/external/e2fsprogs/lib/ext2fs/ |
H A D | valid_blk.c | 2 * valid_blk.c --- does the inode have valid blocks? 23 * This function returns 1 if the inode's block entries actually 26 int ext2fs_inode_has_valid_blocks(struct ext2_inode *inode) argument 32 if (!LINUX_S_ISDIR(inode->i_mode) && !LINUX_S_ISREG(inode->i_mode) && 33 !LINUX_S_ISLNK(inode->i_mode)) 40 if (LINUX_S_ISLNK (inode->i_mode)) { 41 if (inode->i_file_acl == 0) { 43 if (inode->i_blocks == 0) 47 if (inode [all...] |
H A D | i_block.c | 29 errcode_t ext2fs_iblk_add_blocks(ext2_filsys fs, struct ext2_inode *inode, argument 32 unsigned long long b = inode->i_blocks; 36 !(inode->i_flags & EXT4_HUGE_FILE_FL)) 43 b += ((long long) inode->osd2.linux2.l_i_blocks_hi) << 32; 44 inode->osd2.linux2.l_i_blocks_hi = b >> 32; 47 inode->i_blocks = b & 0xFFFFFFFF; 51 errcode_t ext2fs_iblk_sub_blocks(ext2_filsys fs, struct ext2_inode *inode, argument 54 unsigned long long b = inode->i_blocks; 58 !(inode->i_flags & EXT4_HUGE_FILE_FL)) 68 b += ((long long) inode 75 ext2fs_iblk_set(ext2_filsys fs, struct ext2_inode *inode, blk64_t b) argument [all...] |
H A D | lookup.c | 24 ext2_ino_t *inode; member in struct:lookup_struct 43 *ls->inode = dirent->inode; 50 int namelen, char *buf, ext2_ino_t *inode) 59 ls.inode = inode; 49 ext2fs_lookup(ext2_filsys fs, ext2_ino_t dir, const char *name, int namelen, char *buf, ext2_ino_t *inode) argument
|
H A D | mkdir.c | 37 struct ext2_inode parent_inode, inode; local 46 * Allocate an inode, if necessary 70 * Get the parent's inode, if necessary 80 * Create the inode structure.... 82 memset(&inode, 0, sizeof(struct ext2_inode)); 83 inode.i_mode = LINUX_S_IFDIR | (0777 & ~fs->umask); 84 inode.i_uid = inode.i_gid = 0; 85 ext2fs_iblk_set(fs, &inode, 1); 86 inode [all...] |
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 | 85 struct ext2_inode inode; local 112 * Update the size and block count fields in the inode. 114 retval = ext2fs_read_inode(fs, dir, &inode); 118 inode.i_size += fs->blocksize; 119 ext2fs_iblk_add_blocks(fs, &inode, es.newblocks); 121 retval = ext2fs_write_inode(fs, dir, &inode);
|
H A D | unlink.c | 24 ext2_ino_t inode; member in struct:link_struct 51 if (ls->inode) { 52 if (dirent->inode != ls->inode) 55 if (!dirent->inode) 62 dirent->inode = 0; 87 ls.inode = ino;
|
H A D | bb_inode.c | 2 * bb_inode.c --- routines to update the bad block inode. 5 * this routine returns an error, the bad block inode may be in an 54 * Given a bad blocks bitmap, update the bad blocks inode to reflect 61 struct ext2_inode inode; local 100 * block inode (!). 120 * Update the bad block inode's mod time and block count 123 retval = ext2fs_read_inode(fs, EXT2_BAD_INO, &inode); 127 inode.i_atime = inode.i_mtime = fs->now ? fs->now : time(0); 128 if (!inode [all...] |
H A D | bmove.c | 30 struct ext2_inode * inode; member in struct:process_block_struct 100 struct ext2_inode inode; local 135 retval = ext2fs_get_next_inode(scan, &ino, &inode); 140 if ((inode.i_links_count == 0) || 141 !ext2fs_inode_has_valid_blocks(&inode)) 145 pb.inode = &inode; 147 pb.add_dir = (LINUX_S_ISDIR(inode.i_mode) && 158 retval = ext2fs_get_next_inode(scan, &ino, &inode);
|
H A D | link.c | 25 ext2_ino_t inode; member in struct:link_struct 56 (next->inode == 0) && 70 if (dirent->inode) { 80 next->inode = 0; 94 dirent->inode = ls->inode; 116 struct ext2_inode inode; local 126 ls.inode = ino; 143 if ((retval = ext2fs_read_inode(fs, dir, &inode)) != 0) 146 if (inode [all...] |
H A D | namei.c | 28 ext2_ino_t inode, int link_count, 37 printf("follow_link: root=%lu, dir=%lu, inode=%lu, lc=%d\n", 38 root, dir, inode, link_count); 41 retval = ext2fs_read_inode (fs, inode, &ei); 44 *res_inode = inode; 71 * directory and the root directory, and returns the inode of the 84 ext2_ino_t inode; local 101 retval = ext2fs_lookup (fs, dir, thisname, len, buf, &inode); 103 retval = follow_link (fs, root, dir, inode, 119 ext2_ino_t dir, inode; local 27 follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t dir, ext2_ino_t inode, int link_count, char *buf, ext2_ino_t *res_inode) argument 150 ext2fs_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, const char *name, ext2_ino_t *inode) argument 169 ext2fs_namei_follow(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, const char *name, ext2_ino_t *inode) argument 188 ext2fs_follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, ext2_ino_t inode, ext2_ino_t *res_inode) argument [all...] |
H A D | res_gdt.c | 58 * uses before we can add them to the resize inode (which has to come 59 * after the creation of the inode table). 65 struct ext2_inode inode; local 80 retval = ext2fs_read_inode(fs, EXT2_RESIZE_INO, &inode); 86 if ((dindir_blk = inode.i_block[EXT2_DIND_BLOCK])) { 101 inode.i_mode = LINUX_S_IFREG | 0600; 102 inode.i_links_count = 1; 103 inode.i_block[EXT2_DIND_BLOCK] = dindir_blk; 104 ext2fs_iblk_set(fs, &inode, 1); 112 inode [all...] |
H A D | tst_iscan.c | 2 * tst_inode.c --- this function tests the inode scan function 63 * Setup the variables for doing the inode scan test. 106 retval = ext2fs_allocate_inode_bitmap(test_fs, "bad inode map", 110 "While allocating bad inode bitmap"); 136 struct ext2_inode inode; local 143 com_err("iterate", retval, "While opening inode scan"); 147 retval = ext2fs_get_next_inode(scan, &ino, &inode); 149 com_err("iterate", retval, "while reading first inode"); 153 retval = ext2fs_get_next_inode(scan, &ino, &inode); 160 "while getting next inode"); [all...] |
H A D | bmap.c | 29 struct ext2_inode *inode, 33 #define inode_bmap(inode, nr) ((inode)->i_block[(nr)]) 132 errcode_t ext2fs_bmap2(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, argument 150 /* Read inode structure if necessary */ 151 if (!inode) { 155 inode = &inode_buf; 159 if (inode->i_flags & EXT4_EXTENTS_FL) { 163 retval = ext2fs_extent_open2(fs, ino, inode, &handle); 196 /* Update inode afte 320 ext2fs_bmap(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf, int bmap_flags, blk_t block, blk_t *phys_blk) argument [all...] |
/external/e2fsprogs/e2fsck/ |
H A D | pass4.c | 21 * This routine is called when an inode is not connected to the 28 struct ext2_inode *inode) 36 e2fsck_read_inode_full(ctx, i, inode,EXT2_INODE_SIZE(fs->super), 38 extra_size = ((struct ext2_inode_large *)inode)->i_extra_isize; 40 e2fsck_read_inode(ctx, i, inode, "pass4: disconnect_inode"); 44 pctx.inode = inode; 47 eamagic = *(__u32 *)(((char *)inode) +EXT2_GOOD_OLD_INODE_SIZE + 55 if (!inode->i_blocks && eamagic != EXT2_EXT_ATTR_MAGIC && 56 (LINUX_S_ISREG(inode 27 disconnect_inode(e2fsck_t ctx, ext2_ino_t i, struct ext2_inode *inode) argument 93 struct ext2_inode *inode; local [all...] |
H A D | emptydir.c | 27 struct ext2_inode inode; member in struct:empty_dir_info_struct 97 printf(_("Empty directory block %u (#%d) in inode %u\n"), 130 retval = ext2fs_bmap(fs, edi->ino, &edi->inode, 160 retval = ext2fs_read_inode(fs, db->ino, &edi->inode); 170 edi->inode.i_size -= edi->freed_blocks * fs->blocksize; 171 ext2fs_iblk_add_blocks(fs, &edi->inode, edi->freed_blocks); 172 retval = ext2fs_write_inode(fs, db->ino, &edi->inode);
|
H A D | iscan.c | 2 * Test to see how quickly we can scan the inode table (not doing 102 struct ext2_inode inode; local 121 com_err(program_name, retval, _("while opening inode scan")); 126 retval = ext2fs_get_next_inode(scan, &ino, &inode); 129 _("while getting next inode"));
|
H A D | scantest.c | 2 * scantest.c - test the speed of the inode scan routine 98 struct ext2_inode inode; local 100 printf(_("size of inode=%d\n"), sizeof(inode)); 116 com_err(argv[0], retval, _("while opening inode scan")); 119 retval = ext2fs_get_next_inode(scan, &ino, &inode); 121 com_err(argv[0], retval, _("while starting inode scan")); 125 if (!inode.i_links_count) 127 printf("%lu\n", inode.i_blocks); 129 retval = ext2fs_get_next_inode(scan, &ino, &inode); [all...] |
H A D | message.c | 19 * %Di <dirent>->ino inode number 24 * %d <dir> inode number 26 * %i <ino> inode number 27 * %Is <inode> -> i_size 28 * %IS <inode> -> i_extra_isize 29 * %Ib <inode> -> i_blocks 30 * %Il <inode> -> i_links_count 31 * %Im <inode> -> i_mode 32 * %IM <inode> -> i_mtime 33 * %IF <inode> 264 struct ext2_inode *inode; local [all...] |
/external/e2fsprogs/debugfs/ |
H A D | icheck.c | 30 ext2_ino_t inode; member in struct:block_walk_struct 45 bw->barray[i].ino = bw->inode; 62 struct ext2_inode inode; local 76 "while allocating inode info array"); 96 com_err("icheck", retval, "while opening inode scan"); 101 retval = ext2fs_get_next_inode(scan, &ino, &inode); 104 com_err("icheck", retval, "while starting inode scan"); 109 if (!inode.i_links_count) 112 bw.inode = ino; 114 if (inode [all...] |
H A D | ncheck.c | 42 if (iw->iarray[i] == dirent->inode) { 59 struct ext2_inode inode; local 64 com_err(argv[0], 0, "Usage: ncheck <inode number> ..."); 73 "while allocating inode info array"); 81 com_err(argv[0], 0, "Bad inode - %s", argv[i]); 90 com_err("ncheck", retval, "while opening inode scan"); 95 retval = ext2fs_get_next_inode(scan, &ino, &inode); 98 com_err("ncheck", retval, "while starting inode scan"); 104 if (!inode.i_links_count) 110 if (inode [all...] |
H A D | ls.c | 52 struct ext2_inode inode; variable in typeref:struct:ext2_inode 67 ino = dirent->inode; 77 if (ino && debugfs_read_inode(ino, &inode, name)) return 0; 78 fprintf(ls->f,"/%u/%06o/%d/%d/%s/",ino,inode.i_mode,inode.i_uid, inode.i_gid,name); 79 if (LINUX_S_ISDIR(inode.i_mode)) 82 fprintf(ls->f, "%lld/", inode.i_size | ((__u64)inode.i_size_high << 32)); 87 if (debugfs_read_inode(ino, &inode, nam 125 ext2_ino_t inode; local [all...] |
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...] |
/external/kernel-headers/original/linux/ |
H A D | efs_dir.h | 14 __be32 inode; member in struct:efs_dentry
|
/external/libcap-ng/libcap-ng-0.7/utils/ |
H A D | proc-llist.h | 37 unsigned long inode; // inode of socket member in struct:_lnode
|