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

123456

/external/e2fsprogs/lib/ext2fs/
H A Dvalid_blk.c2 * 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_blocks2(ext2_filsys fs, 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 (ext2fs_file_acl_block(fs, inode) == 0) {
43 if (inode->i_blocks == 0)
47 if (inode
57 ext2fs_inode_has_valid_blocks(struct ext2_inode *inode) argument
[all...]
H A Di_block.c29 errcode_t ext2fs_iblk_add_blocks(ext2_filsys fs, struct ext2_inode *inode, argument
32 unsigned long long b = inode->i_blocks;
35 b += ((long long) inode->osd2.linux2.l_i_blocks_hi) << 32;
39 !(inode->i_flags & EXT4_HUGE_FILE_FL))
46 inode->osd2.linux2.l_i_blocks_hi = b >> 32;
49 inode->i_blocks = b & 0xFFFFFFFF;
53 errcode_t ext2fs_iblk_sub_blocks(ext2_filsys fs, struct ext2_inode *inode, argument
56 unsigned long long b = inode->i_blocks;
59 b += ((long long) inode->osd2.linux2.l_i_blocks_hi) << 32;
63 !(inode
78 ext2fs_iblk_set(ext2_filsys fs, struct ext2_inode *inode, blk64_t b) argument
[all...]
H A Dsymlink.c35 struct ext2_inode inode; local
54 fastlink = (target_len < sizeof(inode.i_block));
65 * Allocate an inode, if necessary
75 * Create the inode structure....
77 memset(&inode, 0, sizeof(struct ext2_inode));
78 inode.i_mode = LINUX_S_IFLNK | 0777;
79 inode.i_uid = inode.i_gid = 0;
80 ext2fs_iblk_set(fs, &inode, fastlink ? 0 : 1);
81 inode
[all...]
H A Dmkdir.c38 struct ext2_inode parent_inode, inode; local
47 * Allocate an inode, if necessary
71 * Get the parent's inode, if necessary
81 * Create the inode structure....
83 memset(&inode, 0, sizeof(struct ext2_inode));
84 inode.i_mode = LINUX_S_IFDIR | (0777 & ~fs->umask);
85 inode.i_uid = inode.i_gid = 0;
86 ext2fs_iblk_set(fs, &inode, 1);
88 inode
[all...]
H A Dlookup.c24 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 Dbmap.c29 struct ext2_inode *inode,
33 #define inode_bmap(inode, nr) ((inode)->i_block[(nr)])
133 struct ext2_inode *inode,
140 struct ext2_inode *inode,
164 extent_bmap(fs, ino, inode, handle, 0, 0,
177 struct ext2_inode *inode, blk64_t lblk,
187 !(inode->i_flags & EXT4_EXTENTS_FL))
190 retval = ext2fs_extent_open2(fs, ino, inode, &handle);
194 retval = implied_cluster_alloc(fs, ino, inode, handl
139 implied_cluster_alloc(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, ext2_extent_handle_t handle, blk64_t lblk, blk64_t *phys_blk) argument
176 ext2fs_map_cluster_block(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, blk64_t lblk, blk64_t *pblk) argument
204 extent_bmap(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, ext2_extent_handle_t handle, char *block_buf, int bmap_flags, blk64_t block, int *ret_flags, int *blocks_alloc, blk64_t *phys_blk) argument
269 ext2fs_file_block_offset_too_big(ext2_filsys fs, struct ext2_inode *inode, blk64_t offset) argument
291 ext2fs_bmap2(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf, int bmap_flags, blk64_t block, int *ret_flags, blk64_t *phys_blk) argument
444 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...]
H A Dunlink.c24 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 Dnamei.c29 ext2_ino_t inode, int link_count,
39 printf("follow_link: root=%lu, dir=%lu, inode=%lu, lc=%d\n",
40 root, dir, inode, link_count);
43 retval = ext2fs_read_inode (fs, inode, &ei);
46 *res_inode = inode;
53 retval = ext2fs_bmap2(fs, inode, &ei, NULL, 0, 0, NULL, &blk);
78 * directory and the root directory, and returns the inode of the
91 ext2_ino_t inode; local
108 retval = ext2fs_lookup (fs, dir, thisname, len, buf, &inode);
110 retval = follow_link (fs, root, dir, inode,
28 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
126 ext2_ino_t dir, inode; local
157 ext2fs_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, const char *name, ext2_ino_t *inode) argument
176 ext2fs_namei_follow(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, const char *name, ext2_ino_t *inode) argument
195 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 Dlink.c25 ext2_ino_t inode; member in struct:link_struct
59 (next->inode == 0) &&
73 if (dirent->inode) {
83 next->inode = 0;
97 dirent->inode = ls->inode;
119 struct ext2_inode inode; local
129 ls.inode = ino;
146 if ((retval = ext2fs_read_inode(fs, dir, &inode)) != 0)
149 if (inode
[all...]
H A Dres_gdt.c58 * 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
81 retval = ext2fs_read_inode(fs, EXT2_RESIZE_INO, &inode);
96 if ((dindir_blk = inode.i_block[EXT2_DIND_BLOCK])) {
111 inode.i_mode = LINUX_S_IFREG | 0600;
112 inode.i_links_count = 1;
113 inode.i_block[EXT2_DIND_BLOCK] = dindir_blk;
114 ext2fs_iblk_set(fs, &inode, 1);
122 inode
[all...]
/external/qemu/distrib/ext4_utils/src/
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.c58 struct ext4_dir_entry_2 *prev, u32 inode, const char *name,
77 dentry->inode = inode;
88 and stores the location of the structure in an inode. The new inode's
89 .. link is set to dir_inode_num. Stores the location of the inode number
90 of each directory entry into dentries[i].inode, to be filled in later
91 when the inode for the entry is allocated. Returns the inode number of the
96 struct ext4_inode *inode; local
57 add_dentry(u8 *data, u32 *offset, struct ext4_dir_entry_2 *prev, u32 inode, const char *name, u8 file_type) argument
174 struct ext4_inode *inode; local
202 struct ext4_inode *inode; local
237 struct ext4_inode *inode = get_inode(inode_num); local
396 xattr_addto_inode(struct ext4_inode *inode, int name_index, const char *name, const void *value, size_t value_len) argument
415 xattr_addto_block(struct ext4_inode *inode, int name_index, const char *name, const void *value, size_t value_len) argument
442 struct ext4_inode *inode = get_inode(inode_num); local
[all...]
/external/e2fsprogs/debugfs/
H A Dls.c52 struct ext2_inode inode; variable in typeref:struct:ext2_inode
66 ino = dirent->inode;
77 if (debugfs_read_inode(ino, &inode, name))
80 memset(&inode, 0, sizeof(struct ext2_inode));
81 fprintf(ls->f,"/%u/%06o/%d/%d/%s/",ino,inode.i_mode,inode.i_uid, inode.i_gid,name);
82 if (LINUX_S_ISDIR(inode.i_mode))
85 fprintf(ls->f, "%lld/", EXT2_I_SIZE(&inode));
89 if (debugfs_read_inode(ino, &inode, nam
126 ext2_ino_t inode; local
[all...]
H A Ddump.c2 * dump.c --- dump the contents of an inode out to a file
69 static void fix_perms(const char *cmd, const struct ext2_inode *inode, argument
76 i = fchmod(fd, mode_xlate(inode->i_mode));
78 i = chmod(name, mode_xlate(inode->i_mode));
83 i = chown(name, inode->i_uid, inode->i_gid);
86 i = fchown(fd, inode->i_uid, inode->i_gid);
88 i = chown(name, inode->i_uid, inode
106 struct ext2_inode inode; local
151 ext2_ino_t inode; local
200 rdump_symlink(ext2_ino_t ino, struct ext2_inode *inode, const char *fullname) argument
254 rdump_inode(ext2_ino_t ino, struct ext2_inode *inode, const char *name, const char *dumproot) argument
315 struct ext2_inode inode; local
332 struct ext2_inode inode; local
370 ext2_ino_t inode; local
[all...]
H A Ddebugfs.c106 com_err(device, 0, "catastrophic mode - not reading inode or group bitmaps");
110 com_err(device, retval, "while reading inode bitmap");
379 "inode bitmap at %llu, "
380 "inode table at %llu\n"
392 "inodes" : "inode",
400 "inodes" : "inode");
532 struct ext2_inode_large *inode)
539 fprintf(out, "Size of extra inode fields: %u\n", inode->i_extra_isize);
540 if (inode
529 internal_dump_inode_extra(FILE *out, const char *prefix EXT2FS_ATTR((unused)), ext2_ino_t inode_num EXT2FS_ATTR((unused)), struct ext2_inode_large *inode) argument
576 dump_blocks(FILE *f, const char *prefix, ext2_ino_t inode) argument
724 internal_dump_inode(FILE *out, const char *prefix, ext2_ino_t inode_num, struct ext2_inode *inode, int do_dump_blocks) argument
849 dump_inode(ext2_ino_t inode_num, struct ext2_inode *inode) argument
860 ext2_ino_t inode; local
891 struct ext2_inode inode; local
962 ext2_ino_t inode; local
979 ext2_ino_t inode; local
996 ext2_ino_t inode; local
1013 ext2_ino_t inode; local
1043 ext2_ino_t inode; local
1072 ext2_ino_t inode; local
1209 struct ext2_inode inode; local
1287 ext2_ino_t inode; local
1340 struct ext2_inode inode; local
1416 struct ext2_inode inode; local
1661 struct ext2_inode inode; local
1759 struct ext2_inode inode; local
1894 kill_file_by_inode(ext2_ino_t inode) argument
1928 struct ext2_inode inode; local
1989 struct ext2_inode inode; local
2055 ext2_ino_t inode; local
[all...]
H A Dicheck.c30 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");
111 if (!inode.i_links_count)
114 bw.inode = ino;
116 blk = ext2fs_file_acl_block(current_fs, &inode);
[all...]
/external/e2fsprogs/e2fsck/
H A Dquota.c23 struct ext2_inode inode; local
26 /* We need the inode bitmap to be loaded */
30 if (ext2fs_read_inode(fs, from_ino, &inode))
33 inode.i_links_count = 1;
34 inode.i_mode = LINUX_S_IFREG | 0600;
35 inode.i_flags = EXT2_IMMUTABLE_FL;
38 inode.i_flags |= EXT4_EXTENTS_FL;
40 ext2fs_write_new_inode(fs, to_ino, &inode);
41 /* unlink the old inode */
45 /* Clear out the original inode i
[all...]
H A Dpass1.c2 * pass1.c -- pass #1 of e2fsck: sequential scan of the inode table
12 * and applies the following tests to each inode:
14 * - The mode field of the inode must be legal.
15 * - The size and block count fields of the inode are correct.
16 * - A data block must not be used by another inode
31 * other passes should not need to read in the inode information
34 * inode to fix it.)
90 struct ext2_inode *inode; member in struct:process_block_struct
98 struct ext2_inode inode; member in struct:process_inode_block
126 * Check to make sure a device inode i
134 struct ext2_inode *inode) struct
168 e2fsck_pass1_check_symlink(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, char *buf) argument
258 struct ext2_inode *inode = pctx->inode; local
274 struct ext2_inode_large *inode; local
353 struct ext2_inode_large *inode; local
403 struct ext2_inode *inode = pctx->inode; local
548 struct ext2_inode *inode; local
1497 struct ext2_inode *inode = pctx->inode; local
1675 handle_htree(e2fsck_t ctx, struct problem_context *pctx, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf) argument
1732 e2fsck_clear_inode(e2fsck_t ctx, ext2_ino_t ino, struct ext2_inode *inode, int restart_flag, const char *source) argument
1958 struct ext2_inode *inode = pctx->inode; local
2005 struct ext2_inode *inode = pctx->inode; local
2793 pass1_read_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument
2804 pass1_write_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument
[all...]
H A Dpass4.c21 * 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
94 struct ext2_inode *inode; local
[all...]
H A Dpass2.c20 * - The inode number in the directory entry should be within
22 * - The inode number should refer to a in-use inode.
23 * - The first entry should be '.', and its inode should be
24 * the inode of the directory.
31 * - The inode numbers of the subdirectories for each directory.
60 * Keeps track of how many times an inode is referenced.
357 if (!dirent->inode)
370 dirent->inode = ino;
378 if (dirent->inode !
487 struct ext2_inode inode; local
1185 struct ext2_inode inode; local
1252 struct ext2_inode inode; local
1266 struct ext2_inode inode; local
1419 struct ext2_inode inode; local
[all...]
H A Dmessage.c19 * %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>
268 struct ext2_inode *inode; local
[all...]
/external/yaffs2/yaffs2/
H A Dyaffs_fs.c22 * >> inode->u.generic_ip points to the associated yaffs_Object.
29 * * Michael Fischer for finding the problem with inode inconsistency.
118 static int yaffs_create(struct inode *dir, struct dentry *dentry, int mode,
120 static struct dentry *yaffs_lookup(struct inode *dir, struct dentry *dentry,
123 static int yaffs_create(struct inode *dir, struct dentry *dentry, int mode);
124 static struct dentry *yaffs_lookup(struct inode *dir, struct dentry *dentry);
126 static int yaffs_link(struct dentry *old_dentry, struct inode *dir,
128 static int yaffs_unlink(struct inode *dir, struct dentry *dentry);
129 static int yaffs_symlink(struct inode *dir, struct dentry *dentry,
131 static int yaffs_mkdir(struct inode *di
326 struct inode *inode = NULL; /* NCB 2.5/2.6 needs NULL here */ local
382 yaffs_put_inode(struct inode *inode) argument
391 yaffs_clear_inode(struct inode *inode) argument
430 yaffs_delete_inode(struct inode *inode) argument
551 struct inode *inode; local
666 yaffs_FillInodeFromObject(struct inode *inode, yaffs_Object * obj) argument
772 struct inode *inode; local
805 struct inode *inode; local
861 struct inode *inode = f->f_dentry->d_inode; local
957 struct inode *inode; local
1100 struct inode *inode = old_dentry->d_inode; local
1158 struct inode *inode; local
1250 struct inode *inode = dentry->d_inode; local
1374 yaffs_read_inode(struct inode *inode) argument
1456 struct inode *inode = NULL; local
[all...]
/external/e2fsprogs/lib/quota/
H A Dmkquota.c28 static void print_inode(struct ext2_inode *inode) argument
30 if (!inode)
33 fprintf(stderr, " i_mode = %d\n", inode->i_mode);
34 fprintf(stderr, " i_uid = %d\n", inode->i_uid);
35 fprintf(stderr, " i_size = %d\n", inode->i_size);
36 fprintf(stderr, " i_atime = %d\n", inode->i_atime);
37 fprintf(stderr, " i_ctime = %d\n", inode->i_ctime);
38 fprintf(stderr, " i_mtime = %d\n", inode->i_mtime);
39 fprintf(stderr, " i_dtime = %d\n", inode->i_dtime);
40 fprintf(stderr, " i_gid = %d\n", inode
194 get_qid(struct ext2_inode *inode, int qtype) argument
291 quota_data_add(quota_ctx_t qctx, struct ext2_inode *inode, ext2_ino_t ino, qsize_t space) argument
317 quota_data_sub(quota_ctx_t qctx, struct ext2_inode *inode, ext2_ino_t ino, qsize_t space) argument
342 quota_data_inodes(quota_ctx_t qctx, struct ext2_inode *inode, ext2_ino_t ino, int adjust) argument
369 struct ext2_inode inode; local
[all...]
/external/chromium-trace/trace-viewer/src/tracing/importer/linux_perf/
H A Ddisk_parser.js89 var inode = parseInt(event[2]);
92 var key = device + '-' + inode + '-' + pos + '-' + len;
105 var inode = parseInt(event[2]);
109 var key = device + '-' + inode + '-' + pos + '-' + len;
113 inode: inode,
125 var inode = parseInt(event[2]);
128 var key = device + '-' + inode + '-' + pos + '-' + len;
141 var inode = parseInt(event[2]);
145 var key = device + '-' + inode
[all...]

Completed in 5288 milliseconds

123456