Home
last modified time | relevance | path

Searched refs:inode (Results 1 – 25 of 524) sorted by relevance

12345678910>>...21

/external/syslinux/core/fs/
Dgetfssec.c74 static void get_next_extent(struct inode *inode) in get_next_extent() argument
77 uint32_t lstart = inode->this_extent.lstart + inode->this_extent.len; in get_next_extent()
79 if (inode->fs->fs_ops->next_extent(inode, lstart)) in get_next_extent()
80 inode->next_extent.len = 0; /* ERROR */ in get_next_extent()
81 inode->next_extent.lstart = lstart; in get_next_extent()
84 inode, inode->next_extent.lstart, in get_next_extent()
85 inode->next_extent.pstart, inode->next_extent.len); in get_next_extent()
91 struct inode *inode = file->inode; in generic_getfssec() local
95 uint32_t bytes_left = inode->size - file->offset; in generic_getfssec()
109 if (lsector < inode->this_extent.lstart || in generic_getfssec()
[all …]
Dfs.c27 struct inode *alloc_inode(struct fs_info *fs, uint32_t ino, size_t data) in alloc_inode()
29 struct inode *inode = zalloc(sizeof(struct inode) + data); in alloc_inode() local
30 if (inode) { in alloc_inode()
31 inode->fs = fs; in alloc_inode()
32 inode->ino = ino; in alloc_inode()
33 inode->refcnt = 1; in alloc_inode()
35 return inode; in alloc_inode()
41 void put_inode(struct inode *inode) in put_inode() argument
43 while (inode) { in put_inode()
44 struct inode *dead = inode; in put_inode()
[all …]
/external/squashfs-tools/kernel/fs/squashfs/
Dinode.c55 static int squashfs_new_inode(struct super_block *sb, struct inode *inode, in squashfs_new_inode() argument
60 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->uid), &inode->i_uid); in squashfs_new_inode()
64 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->guid), &inode->i_gid); in squashfs_new_inode()
68 inode->i_ino = le32_to_cpu(sqsh_ino->inode_number); in squashfs_new_inode()
69 inode->i_mtime.tv_sec = le32_to_cpu(sqsh_ino->mtime); in squashfs_new_inode()
70 inode->i_atime.tv_sec = inode->i_mtime.tv_sec; in squashfs_new_inode()
71 inode->i_ctime.tv_sec = inode->i_mtime.tv_sec; in squashfs_new_inode()
72 inode->i_mode = le16_to_cpu(sqsh_ino->mode); in squashfs_new_inode()
73 inode->i_size = 0; in squashfs_new_inode()
79 struct inode *squashfs_iget(struct super_block *sb, long long ino, in squashfs_iget()
[all …]
Dfile.c61 static struct meta_index *locate_meta_index(struct inode *inode, int offset, in locate_meta_index() argument
65 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in locate_meta_index()
76 if (msblk->meta_index[i].inode_number == inode->i_ino && in locate_meta_index()
100 static struct meta_index *empty_meta_index(struct inode *inode, int offset, in empty_meta_index() argument
103 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in empty_meta_index()
149 meta->inode_number = inode->i_ino; in empty_meta_index()
161 static void release_meta_index(struct inode *inode, struct meta_index *meta) in release_meta_index() argument
163 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in release_meta_index()
237 static int fill_meta_index(struct inode *inode, int index, in fill_meta_index() argument
240 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in fill_meta_index()
[all …]
/external/e2fsprogs/tests/f_h_reindex/
Dexpect.11 Backing up journal inode block information.
5 Problem in HTREE directory inode 16001: block #1 has bad max hash
6 Problem in HTREE directory inode 16001: block #2 has bad min hash
7 Problem in HTREE directory inode 16001: block #2 has bad max hash
8 Problem in HTREE directory inode 16001: block #3 has bad min hash
9 Problem in HTREE directory inode 16001: block #3 has bad max hash
10 Problem in HTREE directory inode 16001: block #4 has bad min hash
11 Problem in HTREE directory inode 16001: block #4 has bad max hash
12 Problem in HTREE directory inode 16001: block #5 has bad min hash
13 Problem in HTREE directory inode 16001: block #5 has bad max hash
[all …]
/external/e2fsprogs/tests/f_journal/
Dexpect.12 Clearing orphaned inode 37 (uid=0, gid=0, mode=0100600, size=4096)
3 Clearing orphaned inode 90 (uid=0, gid=0, mode=040700, size=1024)
4 Clearing orphaned inode 67 (uid=0, gid=0, mode=0100600, size=4096)
5 Clearing orphaned inode 50 (uid=0, gid=0, mode=0100600, size=4096)
6 Clearing orphaned inode 57 (uid=0, gid=0, mode=040700, size=1024)
7 Clearing orphaned inode 80 (uid=0, gid=0, mode=040700, size=1024)
8 Clearing orphaned inode 45 (uid=0, gid=0, mode=040700, size=1024)
9 Clearing orphaned inode 71 (uid=0, gid=0, mode=0100600, size=4096)
10 Clearing orphaned inode 86 (uid=0, gid=0, mode=040700, size=1024)
11 Clearing orphaned inode 83 (uid=0, gid=0, mode=040700, size=1024)
[all …]
/external/ltp/testcases/kernel/device-drivers/drm/kernel_space/
Dstr_drm.h34 extern int tdrm_test_interface(struct inode *inode, struct file *filp,
36 extern int tdrm_test_stub_register(struct inode *inode,struct file *filp,
38 extern int tdrm_test_stub_unregister(struct inode *inode,struct file *filp,
40 extern int tdrm_test_uninit_agp(struct inode *inode,struct file *filp,
42 extern int tdrm_test_init_agp(struct inode *inode,struct file *filp,
44 extern int tdrm_test_add_magic(struct inode *inode,struct file *filp,
46 extern int tdrm_test_remove_magic(struct inode *inode,struct file *filp,
48 extern int tdrm_test_ctxbitmap_init(struct inode *inode,struct file *filp,
50 extern int tdrm_test_ctxbitmap_cleanup(struct inode *inode,struct file *filp,
52 extern int tdrm_test_alloc_pages(struct inode *inode,struct file *filp,
[all …]
/external/e2fsprogs/tests/f_expand/
Dexpect.1.gz
/external/syslinux/core/fs/ufs/
Dufs.c84 ufs_get_cache(struct inode *inode, block_t lblock) in ufs_get_cache() argument
87 struct fs_info *fs = inode->fs; in ufs_get_cache()
88 struct ufs_sb_info *sb = UFS_SB(inode->fs); in ufs_get_cache()
93 frag_addr = ufs_bmap(inode, lblock, NULL); in ufs_get_cache()
114 ufs_find_entry(struct fs_info *fs, struct inode *inode, const char *dname) in ufs_find_entry() argument
122 for (i = 0; i < inode->size; i += fs->block_size) { in ufs_find_entry()
123 data = ufs_get_cache(inode, index++); in ufs_find_entry()
125 maxoffset = min(inode->size-i, fs->block_size); in ufs_find_entry()
194 static struct inode *
198 struct inode *inode; in ufs1_iget_by_inr() local
[all …]
/external/e2fsprogs/tests/f_dup4/
Dexpect.13 Running additional passes to resolve blocks claimed by more than one inode...
5 Multiply-claimed block(s) in inode 16: 30
6 Multiply-claimed block(s) in inode 17: 30
7 Multiply-claimed block(s) in inode 18: 30
8 Multiply-claimed block(s) in inode 19: 30
9 Multiply-claimed block(s) in inode 20: 34
10 Multiply-claimed block(s) in inode 21: 34
11 Multiply-claimed block(s) in inode 22: 34
12 Multiply-claimed block(s) in inode 23: 34
17 File /dir/foo (inode #16, mod time Tue Apr 10 21:00:00 2007)
[all …]
/external/e2fsprogs/tests/f_badorphan/
Dexpect.11 Clearing orphaned inode 54 (uid=0, gid=0, mode=0100600, size=44610)
2 Clearing orphaned inode 32 (uid=0, gid=0, mode=040700, size=1024)
3 Clearing orphaned inode 67 (uid=0, gid=0, mode=040700, size=1024)
4 Clearing orphaned inode 55 (uid=0, gid=0, mode=040700, size=1024)
5 Backing up journal inode block information.
10 Inode 13 was part of the orphaned inode list. FIXED.
11 Inode 17 was part of the orphaned inode list. FIXED.
12 Deleted inode 18 has zero dtime. Fix? yes
14 Inode 19 was part of the orphaned inode list. FIXED.
15 Inode 22 was part of the orphaned inode list. FIXED.
[all …]
/external/syslinux/core/fs/xfs/
Dxfs.c67 struct inode *inode = file->inode; in xfs_readdir() local
71 core = xfs_dinode_get_core(fs, inode->ino); in xfs_readdir()
73 xfs_error("Failed to get dinode from disk (ino %llx)", inode->ino); in xfs_readdir()
91 static int xfs_next_extent(struct inode *inode, uint32_t lstart) in xfs_next_extent() argument
93 struct fs_info *fs = inode->fs; in xfs_next_extent()
107 xfs_debug("inode %p lstart %lu", inode, lstart); in xfs_next_extent()
109 core = xfs_dinode_get_core(fs, inode->ino); in xfs_next_extent()
111 xfs_error("Failed to get dinode from disk (ino %llx)", inode->ino); in xfs_next_extent()
116 if (XFS_PVT(inode)->i_cur_extent == be32_to_cpu(core->di_nextents)) in xfs_next_extent()
121 XFS_PVT(inode)->i_cur_extent++); in xfs_next_extent()
[all …]
/external/syslinux/core/fs/ext2/
Dext2.c82 ext2_get_cache(struct inode *inode, block_t lblock) in ext2_get_cache() argument
84 block_t pblock = ext2_bmap(inode, lblock, NULL); in ext2_get_cache()
85 return get_cache(inode->fs->fs_dev, pblock); in ext2_get_cache()
92 ext2_find_entry(struct fs_info *fs, struct inode *inode, const char *dname) in ext2_find_entry() argument
100 while (i < inode->size) { in ext2_find_entry()
101 data = ext2_get_cache(inode, index++); in ext2_find_entry()
103 maxoffset = min(BLOCK_SIZE(fs), i-inode->size); in ext2_find_entry()
147 static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode) in fill_inode() argument
149 inode->mode = IFTODT(e_inode->i_mode); in fill_inode()
150 inode->size = e_inode->i_size; in fill_inode()
[all …]
/external/squashfs-tools/squashfs-tools/
Dunsquash-4.c97 struct inode *read_inode_4(unsigned int start_block, unsigned int offset) in read_inode_4()
103 static struct inode i; in read_inode_4()
122 struct squashfs_dir_inode_header *inode = &header.dir; in read_inode_4() local
124 SQUASHFS_SWAP_DIR_INODE_HEADER(block_ptr, inode); in read_inode_4()
126 i.data = inode->file_size; in read_inode_4()
127 i.offset = inode->offset; in read_inode_4()
128 i.start = inode->start_block; in read_inode_4()
133 struct squashfs_ldir_inode_header *inode = &header.ldir; in read_inode_4() local
135 SQUASHFS_SWAP_LDIR_INODE_HEADER(block_ptr, inode); in read_inode_4()
137 i.data = inode->file_size; in read_inode_4()
[all …]
/external/strace/
Dsocketutils.c50 unsigned long inode; member
59 cache_inode_details(const unsigned long inode, char *const details) in cache_inode_details() argument
61 cache_entry *e = &cache[inode & CACHE_MASK]; in cache_inode_details()
63 e->inode = inode; in cache_inode_details()
70 get_sockaddr_by_inode_cached(const unsigned long inode) in get_sockaddr_by_inode_cached() argument
72 const cache_entry *const e = &cache[inode & CACHE_MASK]; in get_sockaddr_by_inode_cached()
73 return (e && inode == e->inode) ? e->details : NULL; in get_sockaddr_by_inode_cached()
77 print_sockaddr_by_inode_cached(const unsigned long inode) in print_sockaddr_by_inode_cached() argument
79 const char *const details = get_sockaddr_by_inode_cached(inode); in print_sockaddr_by_inode_cached()
137 const unsigned long inode, void *opaque_data) in inet_parse_response() argument
[all …]
/external/syslinux/core/fs/pxe/
Dpxe.c30 static struct inode *allocate_socket(struct fs_info *fs) in allocate_socket()
32 struct inode *inode = alloc_inode(fs, 0, sizeof(struct pxe_pvt_inode)); in allocate_socket() local
34 if (!inode) { in allocate_socket()
37 inode->mode = DT_REG; /* No other types relevant for PXE */ in allocate_socket()
40 return inode; in allocate_socket()
43 void free_socket(struct inode *inode) in free_socket() argument
45 struct pxe_pvt_inode *socket = PVT(inode); in free_socket()
48 free_inode(inode); in free_socket()
53 struct inode *inode = file->inode; in pxe_close_file() local
54 struct pxe_pvt_inode *socket = PVT(inode); in pxe_close_file()
[all …]
/external/e2fsprogs/e2fsck/
Dpass1.c95 struct ext2_inode *inode; member
105 struct ext2_inode_large inode; member
141 struct ext2_inode *inode) in e2fsck_pass1_check_device_inode() argument
149 if (inode->i_flags & EXT2_INDEX_FL) in e2fsck_pass1_check_device_inode()
163 if (inode->i_flags & (EXT2_IMMUTABLE_FL | EXT2_APPEND_FL)) { in e2fsck_pass1_check_device_inode()
165 if (inode->i_block[i]) in e2fsck_pass1_check_device_inode()
176 struct ext2_inode *inode, char *buf) in e2fsck_pass1_check_symlink() argument
185 if ((inode->i_size_high || inode->i_size == 0) || in e2fsck_pass1_check_symlink()
186 (inode->i_flags & EXT2_INDEX_FL)) in e2fsck_pass1_check_symlink()
189 if (inode->i_flags & EXT4_EXTENTS_FL) { in e2fsck_pass1_check_symlink()
[all …]
/external/e2fsprogs/tests/f_rebuild_csum_rootdir/
Dexpect.13 Directory inode 2, block #0, offset 0: directory has no checksum.
6 Directory inode 2, block #0, offset 0: directory corrupted
9 Missing '.' in directory inode 2.
13 Missing '..' in directory inode 2.
18 '..' in / (2) is <The NULL inode> (0), should be / (2).
21 Unconnected directory inode 11 (/???)
30 Unattached inode 12
35 Unattached inode 13
40 Unattached inode 14
45 Unattached inode 15
[all …]
/external/e2fsprogs/debugfs/
Ddump.c70 static void fix_perms(const char *cmd, const struct ext2_inode *inode, in fix_perms() argument
77 i = fchmod(fd, mode_xlate(inode->i_mode)); in fix_perms()
79 i = chmod(name, mode_xlate(inode->i_mode)); in fix_perms()
84 i = chown(name, inode->i_uid, inode->i_gid); in fix_perms()
87 i = fchown(fd, inode->i_uid, inode->i_gid); in fix_perms()
89 i = chown(name, inode->i_uid, inode->i_gid); in fix_perms()
94 ut.actime = inode->i_atime; in fix_perms()
95 ut.modtime = inode->i_mtime; in fix_perms()
104 struct ext2_inode inode; in dump_file() local
110 if (debugfs_read_inode(ino, &inode, cmdname)) in dump_file()
[all …]
Ddebugfs.c594 struct ext2_inode_large *inode) in internal_dump_inode_extra() argument
596 fprintf(out, "Size of extra inode fields: %u\n", inode->i_extra_isize); in internal_dump_inode_extra()
597 if (inode->i_extra_isize > EXT2_INODE_SIZE(current_fs->super) - in internal_dump_inode_extra()
600 inode->i_extra_isize); in internal_dump_inode_extra()
605 static void dump_blocks(FILE *f, const char *prefix, ext2_ino_t inode) in dump_blocks() argument
614 ext2fs_block_iterate3(current_fs, inode, BLOCK_FLAG_READ_ONLY, NULL, in dump_blocks()
765 struct ext2_inode *inode, const char *prefix) in dump_fast_link() argument
771 if (inode->i_flags & EXT4_INLINE_DATA_FL) { in dump_fast_link()
781 inode, buf, &size); in dump_fast_link()
791 size_t sz = EXT2_I_SIZE(inode); in dump_fast_link()
[all …]
/external/e2fsprogs/tests/f_bad_inode_csum/
Dexpect.15 Inode 49 passes checks, but checksum does not match inode. Fix? yes
7 Inode 65 passes checks, but checksum does not match inode. Fix? yes
9 Inode 81 passes checks, but checksum does not match inode. Fix? yes
44 Extended attribute block for inode 49 (/38) is invalid (4294967295).
47 Entry '86' in / (2) has deleted/unused inode 97. Clear? yes
49 Entry '87' in / (2) has deleted/unused inode 98. Clear? yes
51 Entry '88' in / (2) has deleted/unused inode 99. Clear? yes
53 Entry '89' in / (2) has deleted/unused inode 100. Clear? yes
55 Entry '90' in / (2) has deleted/unused inode 101. Clear? yes
57 Entry '91' in / (2) has deleted/unused inode 102. Clear? yes
[all …]
/external/ltp/testcases/kernel/syscalls/utils/
Dinotify.h87 struct inode *inode; /* associated inode */ member
94 const char *, struct inode *);
102 extern void inotify_d_instantiate(struct dentry *, struct inode *);
104 extern void inotify_inode_queue_event(struct inode *, __u32, __u32,
105 const char *, struct inode *);
109 extern void inotify_inode_is_dead(struct inode *);
117 extern __s32 inotify_find_watch(struct inotify_handle *, struct inode *,
119 extern __s32 inotify_find_update_watch(struct inotify_handle *, struct inode *,
122 struct inode *, __u32);
133 struct inode *inode) in inotify_d_instantiate() argument
[all …]
/external/e2fsprogs/tests/f_holedir4/
Dexpect.12 Directory inode 12 block 211 should be at block 25. Fix? yes
9 Directory inode 12 has an unallocated block #2. Allocate? yes
11 Directory inode 12 has an unallocated block #3. Allocate? yes
13 Directory inode 12 has an unallocated block #4. Allocate? yes
15 Directory inode 12 has an unallocated block #5. Allocate? yes
17 Directory inode 12 has an unallocated block #6. Allocate? yes
19 Directory inode 12 has an unallocated block #7. Allocate? yes
21 Directory inode 12 has an unallocated block #8. Allocate? yes
23 Directory inode 12 has an unallocated block #9. Allocate? yes
25 Directory inode 12 has an unallocated block #10. Allocate? yes
[all …]
/external/syslinux/core/include/
Dfs.h37 struct inode *root, *cwd; /* Root and current directories */
66 struct inode * (*iget_root)(struct fs_info *);
67 struct inode * (*iget)(const char *, struct inode *);
68 int (*readlink)(struct inode *, char *);
73 int (*next_extent)(struct inode *, uint32_t);
100 struct inode { struct
102 struct inode *parent; /* Parent directory, if any */ argument
122 struct inode *inode; /* The file-specific information */ member
155 struct inode *alloc_inode(struct fs_info *fs, uint32_t ino, size_t data);
156 static inline void free_inode(struct inode * inode) in free_inode() argument
[all …]
/external/e2fsprogs/lib/ext2fs/
Dvalid_blk.c27 int ext2fs_inode_has_valid_blocks2(ext2_filsys fs, struct ext2_inode *inode) in ext2fs_inode_has_valid_blocks2() argument
33 if (!LINUX_S_ISDIR(inode->i_mode) && !LINUX_S_ISREG(inode->i_mode) && in ext2fs_inode_has_valid_blocks2()
34 !LINUX_S_ISLNK(inode->i_mode)) in ext2fs_inode_has_valid_blocks2()
41 if (LINUX_S_ISLNK (inode->i_mode)) { in ext2fs_inode_has_valid_blocks2()
42 if (ext2fs_file_acl_block(fs, inode) == 0) { in ext2fs_inode_has_valid_blocks2()
44 if (inode->i_blocks == 0) in ext2fs_inode_has_valid_blocks2()
48 if (inode->i_size >= EXT2_N_BLOCKS*4) in ext2fs_inode_has_valid_blocks2()
50 if (inode->i_size > 4 && inode->i_block[1] == 0) in ext2fs_inode_has_valid_blocks2()
60 if (inode->i_flags & EXT4_INLINE_DATA_FL) in ext2fs_inode_has_valid_blocks2()
65 int ext2fs_inode_has_valid_blocks(struct ext2_inode *inode) in ext2fs_inode_has_valid_blocks() argument
[all …]

12345678910>>...21