Home
last modified time | relevance | path

Searched refs:i_mode (Results 1 – 25 of 104) sorted by relevance

12345

/external/e2fsprogs/lib/ext2fs/
Dvalid_blk.c33 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()
Dsymlink.c103 inode.i_mode = LINUX_S_IFLNK | 0777; in ext2fs_symlink()
202 return LINUX_S_ISLNK(inode->i_mode) && EXT2_I_SIZE(inode) && in ext2fs_is_fast_symlink()
/external/squashfs-tools/kernel/fs/squashfs/
Dinode.c72 inode->i_mode = le16_to_cpu(sqsh_ino->mode); in squashfs_new_inode()
162 inode->i_mode |= S_IFREG; in squashfs_read_inode()
204 inode->i_mode |= S_IFREG; in squashfs_read_inode()
233 inode->i_mode |= S_IFDIR; in squashfs_read_inode()
257 inode->i_mode |= S_IFDIR; in squashfs_read_inode()
284 inode->i_mode |= S_IFLNK; in squashfs_read_inode()
306 inode->i_mode |= S_IFCHR; in squashfs_read_inode()
308 inode->i_mode |= S_IFBLK; in squashfs_read_inode()
311 init_special_inode(inode, inode->i_mode, new_decode_dev(rdev)); in squashfs_read_inode()
329 inode->i_mode |= S_IFIFO; in squashfs_read_inode()
[all …]
/external/e2fsprogs/e2fsck/
Dmessage.c284 if (LINUX_S_ISDIR(inode->i_mode)) in expand_inode_expression()
304 fprintf(f, "0%o", inode->i_mode); in expand_inode_expression()
316 fprintf(f, "%u", (LINUX_S_ISDIR(inode->i_mode) ? in expand_inode_expression()
326 if (LINUX_S_ISREG(inode->i_mode)) in expand_inode_expression()
328 else if (LINUX_S_ISDIR(inode->i_mode)) in expand_inode_expression()
330 else if (LINUX_S_ISCHR(inode->i_mode)) in expand_inode_expression()
332 else if (LINUX_S_ISBLK(inode->i_mode)) in expand_inode_expression()
334 else if (LINUX_S_ISFIFO(inode->i_mode)) in expand_inode_expression()
336 else if (LINUX_S_ISLNK(inode->i_mode)) in expand_inode_expression()
338 else if (LINUX_S_ISSOCK(inode->i_mode)) in expand_inode_expression()
[all …]
Dpass1.c680 if (LINUX_S_ISDIR(inode->i_mode) || LINUX_S_ISREG(inode->i_mode) || in check_is_really_dir()
681 LINUX_S_ISLNK(inode->i_mode) || inode->i_block[0] == 0) in check_is_really_dir()
771 if ((LINUX_S_ISCHR(inode->i_mode) || LINUX_S_ISBLK(inode->i_mode)) && in check_is_really_dir()
807 inode->i_mode = (inode->i_mode & 07777) | LINUX_S_IFDIR; in check_is_really_dir()
1006 if (LINUX_S_ISCHR(inode->i_mode) || in fix_inline_data_extents_file()
1007 LINUX_S_ISBLK(inode->i_mode) || in fix_inline_data_extents_file()
1008 LINUX_S_ISFIFO(inode->i_mode) || in fix_inline_data_extents_file()
1009 LINUX_S_ISSOCK(inode->i_mode)) { in fix_inline_data_extents_file()
1474 if (!inode->i_dtime && inode->i_mode) { in e2fsck_pass1()
1488 ((!LINUX_S_ISDIR(inode->i_mode) && in e2fsck_pass1()
[all …]
Dpass4.c57 (LINUX_S_ISREG(inode->i_mode) || LINUX_S_ISDIR(inode->i_mode))) { in disconnect_inode()
66 LINUX_S_ISDIR(inode->i_mode)); in disconnect_inode()
Dpass2.c556 should_be = ext2_file_type(inode.i_mode); in check_filetype()
1694 ext2fs_inode_alloc_stats2(fs, ino, -1, LINUX_S_ISDIR(inode.i_mode)); in deallocate_inode()
1725 if (LINUX_S_ISREG(inode.i_mode) && in deallocate_inode()
1788 if (!LINUX_S_ISDIR(inode.i_mode) && !LINUX_S_ISREG(inode.i_mode) && in e2fsck_process_bad_inode()
1789 !LINUX_S_ISCHR(inode.i_mode) && !LINUX_S_ISBLK(inode.i_mode) && in e2fsck_process_bad_inode()
1790 !LINUX_S_ISLNK(inode.i_mode) && !LINUX_S_ISFIFO(inode.i_mode) && in e2fsck_process_bad_inode()
1791 !(LINUX_S_ISSOCK(inode.i_mode))) in e2fsck_process_bad_inode()
1793 else if (LINUX_S_ISCHR(inode.i_mode) in e2fsck_process_bad_inode()
1796 else if (LINUX_S_ISBLK(inode.i_mode) in e2fsck_process_bad_inode()
1799 else if (LINUX_S_ISFIFO(inode.i_mode) in e2fsck_process_bad_inode()
[all …]
/external/e2fsprogs/ext2ed/
Dinode_com.c146 wmove (show_pad,0,40);wprintw (show_pad,"octal = %06o ",inode_ptr->i_mode); in type_ext2_inode___show()
148 temp=inode_ptr->i_mode & 0x1ff; in type_ext2_inode___show()
243 if (type_data.u.t_ext2_inode.i_mode==0) in type_ext2_inode___show()
246 if (S_ISREG (type_data.u.t_ext2_inode.i_mode)) in type_ext2_inode___show()
249 if (S_ISDIR (type_data.u.t_ext2_inode.i_mode)) in type_ext2_inode___show()
252 if (S_ISLNK (type_data.u.t_ext2_inode.i_mode)) { in type_ext2_inode___show()
263 if (S_ISCHR (type_data.u.t_ext2_inode.i_mode)) in type_ext2_inode___show()
266 if (S_ISBLK (type_data.u.t_ext2_inode.i_mode)) in type_ext2_inode___show()
335 if (!S_ISREG (type_data.u.t_ext2_inode.i_mode)) { in type_ext2_inode___file()
353 if (!S_ISDIR (type_data.u.t_ext2_inode.i_mode)) { in type_ext2_inode___dir()
/external/erofs-utils/lib/
Dnamei.c58 vi->i_mode = le16_to_cpu(die->i_mode); in erofs_read_inode_from_disk()
60 switch (vi->i_mode & S_IFMT) { in erofs_read_inode_from_disk()
90 vi->i_mode = le16_to_cpu(dic->i_mode); in erofs_read_inode_from_disk()
92 switch (vi->i_mode & S_IFMT) { in erofs_read_inode_from_disk()
131 erofs_err("bogus i_mode (%o) @ nid %llu", vi->i_mode, vi->nid | 0ULL); in erofs_read_inode_from_disk()
Dinode.c406 u.dic.i_mode = cpu_to_le16(inode->i_mode); in erofs_bh_flush_write_inode()
415 switch ((inode->i_mode) >> S_SHIFT) { in erofs_bh_flush_write_inode()
436 u.die.i_mode = cpu_to_le16(inode->i_mode); in erofs_bh_flush_write_inode()
448 switch ((inode->i_mode) >> S_SHIFT) { in erofs_bh_flush_write_inode()
754 inode->i_mode = st->st_mode; in erofs_fill_inode()
772 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
928 if (!S_ISDIR(dir->i_mode)) { in erofs_mkfs_build_tree()
929 if (S_ISLNK(dir->i_mode)) { in erofs_mkfs_build_tree()
1033 ftype = erofs_mode_to_ftype(d->inode->i_mode); in erofs_mkfs_build_tree()
/external/e2fsprogs/misc/
De2fuzz.c76 if (S_ISDIR(fb->inode->i_mode) || !metadata_only || blockcnt < 0) { in find_block_helper()
143 S_ISLNK(inode.i_mode) || S_ISFIFO(inode.i_mode) || in find_metadata_blocks()
144 S_ISCHR(inode.i_mode) || S_ISBLK(inode.i_mode) || in find_metadata_blocks()
145 S_ISSOCK(inode.i_mode)) in find_metadata_blocks()
Dcreate_inode.c85 ext2_file_type(inode.i_mode)); in add_link()
94 ext2_file_type(inode.i_mode)); in add_link()
125 inode.i_mode |= st->st_mode; in set_inode_extra()
301 inode.i_mode = mode; in do_mknod_internal()
663 inode.i_mode = (statbuf.st_mode & ~LINUX_S_IFMT) | LINUX_S_IFREG; in do_write_internal()
690 if (LINUX_S_ISREG(inode.i_mode)) { in do_write_internal()
/external/e2fsprogs/debugfs/
Ddump.c77 i = fchmod(fd, mode_xlate(inode->i_mode)); in fix_perms()
79 i = chmod(name, mode_xlate(inode->i_mode)); in fix_perms()
265 if (LINUX_S_ISLNK(inode->i_mode)) in rdump_inode()
267 else if (LINUX_S_ISREG(inode->i_mode)) { in rdump_inode()
280 else if (LINUX_S_ISDIR(inode->i_mode) && strcmp(name, ".") && strcmp(name, "..")) { in rdump_inode()
Dncheck.c79 filetype != ext2_file_type(inode.i_mode)) { in ncheck_proc()
144 if (LINUX_S_ISDIR(inode.i_mode)) in do_ncheck()
177 if (!LINUX_S_ISDIR(inode.i_mode)) in do_ncheck()
Dls.c116 fprintf(ls->f,"/%u/%06o/%d/%d/%.*s/", ino, inode.i_mode, in list_dir_proc()
118 if (LINUX_S_ISDIR(inode.i_mode)) in list_dir_proc()
137 fprintf(ls->f, "%c%6u%c %6o ", lbr, ino, rbr, inode.i_mode); in list_dir_proc()
Ddebugfs.c827 if (LINUX_S_ISDIR(inode->i_mode)) i_type = "directory"; in internal_dump_inode()
828 else if (LINUX_S_ISREG(inode->i_mode)) i_type = "regular"; in internal_dump_inode()
829 else if (LINUX_S_ISLNK(inode->i_mode)) i_type = "symlink"; in internal_dump_inode()
830 else if (LINUX_S_ISBLK(inode->i_mode)) i_type = "block special"; in internal_dump_inode()
831 else if (LINUX_S_ISCHR(inode->i_mode)) i_type = "character special"; in internal_dump_inode()
832 else if (LINUX_S_ISFIFO(inode->i_mode)) i_type = "FIFO"; in internal_dump_inode()
833 else if (LINUX_S_ISSOCK(inode->i_mode)) i_type = "socket"; in internal_dump_inode()
837 prefix, inode->i_mode & 07777, inode->i_flags); in internal_dump_inode()
851 if (LINUX_S_ISREG(inode->i_mode) || LINUX_S_ISDIR(inode->i_mode)) in internal_dump_inode()
934 if (LINUX_S_ISLNK(inode->i_mode) && ext2fs_is_fast_symlink(inode)) in internal_dump_inode()
[all …]
Dfilefrag.c166 LINUX_S_ISDIR(inode->i_mode) ? " (dir)" : ""); in filefrag()
210 if ((fs->options & RECURSIVE_OPT) && LINUX_S_ISDIR(inode.i_mode)) { in filefrag_dir_proc()
317 if (!LINUX_S_ISDIR(inode.i_mode) || (fs.options & DIR_OPT)) in do_filefrag()
/external/kernel-headers/original/uapi/linux/
Dminix_fs.h36 __u16 i_mode; member
52 __u16 i_mode; member
/external/squashfs-tools/kernel-2.4/fs/squashfs/
Dsquashfs2_0.c146 i->i_mode = inodeb->mode; in squashfs_new_inode()
222 i->i_mode |= S_IFREG; in squashfs_iget_2()
270 i->i_mode |= S_IFDIR; in squashfs_iget_2()
310 i->i_mode |= S_IFDIR; in squashfs_iget_2()
356 i->i_mode |= S_IFLNK; in squashfs_iget_2()
388 i->i_mode |= (inodeb->inode_type == in squashfs_iget_2()
391 init_special_inode(i, i->i_mode, inodep->rdev); in squashfs_iget_2()
403 i->i_mode |= (inodeb->inode_type == SQUASHFS_FIFO_TYPE) in squashfs_iget_2()
405 init_special_inode(i, i->i_mode, 0); in squashfs_iget_2()
/external/e2fsprogs/contrib/android/
Dperms.c82 inode.i_mode); in set_selinux_xattr()
139 params->fs_config_func(filename, S_ISDIR(inode.i_mode), in set_perms_and_caps()
148 inode.i_mode = (inode.i_mode & S_IFMT) | (imode & 0xffff); in set_perms_and_caps()
218 return S_ISDIR(inode.i_mode); in is_dir()
/external/erofs-utils/fuse/
Dmain.c47 stbuf->st_mode = vi.i_mode; in erofsfuse_getattr()
53 if (S_ISBLK(vi.i_mode) || S_ISCHR(vi.i_mode)) in erofsfuse_getattr()
/external/f2fs-tools/fsck/
Dsegment.c150 ASSERT(S_ISREG(le16_to_cpu(inode->i.i_mode))); in f2fs_quota_size()
182 ASSERT(!S_ISDIR(le16_to_cpu(inode->i.i_mode))); in f2fs_read()
183 ASSERT(!S_ISLNK(le16_to_cpu(inode->i.i_mode))); in f2fs_read()
284 ASSERT(!S_ISDIR(le16_to_cpu(inode->i.i_mode))); in f2fs_write_ex()
285 ASSERT(!S_ISLNK(le16_to_cpu(inode->i.i_mode))); in f2fs_write_ex()
398 ASSERT(!S_ISDIR(le16_to_cpu(inode->i.i_mode))); in f2fs_filesize_update()
399 ASSERT(!S_ISLNK(le16_to_cpu(inode->i.i_mode))); in f2fs_filesize_update()
/external/e2fsprogs/tests/f_dir_bad_mode/
Dname1 directory with corrupted i_mode
/external/erofs-utils/include/
Derofs_fs.h86 __le16 i_mode; member
115 __le16 i_mode; member
/external/e2fsprogs/tests/f_bigalloc_badinode/
Dscript15 set_inode_field testfile i_mode 0120000

12345