Home
last modified time | relevance | path

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

1234

/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/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()
Dswapfs.c255 islnk = LINUX_S_ISLNK(f->i_mode); in ext2fs_swap_inode_full()
261 t->i_mode = ext2fs_swab16(f->i_mode); in ext2fs_swap_inode_full()
276 islnk = LINUX_S_ISLNK(t->i_mode); in ext2fs_swap_inode_full()
/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.c678 if (LINUX_S_ISDIR(inode->i_mode) || LINUX_S_ISREG(inode->i_mode) || in check_is_really_dir()
679 LINUX_S_ISLNK(inode->i_mode) || inode->i_block[0] == 0) in check_is_really_dir()
769 if ((LINUX_S_ISCHR(inode->i_mode) || LINUX_S_ISBLK(inode->i_mode)) && in check_is_really_dir()
805 inode->i_mode = (inode->i_mode & 07777) | LINUX_S_IFDIR; in check_is_really_dir()
1004 if (LINUX_S_ISCHR(inode->i_mode) || in fix_inline_data_extents_file()
1005 LINUX_S_ISBLK(inode->i_mode) || in fix_inline_data_extents_file()
1006 LINUX_S_ISFIFO(inode->i_mode) || in fix_inline_data_extents_file()
1007 LINUX_S_ISSOCK(inode->i_mode)) { in fix_inline_data_extents_file()
1469 if (!inode->i_dtime && inode->i_mode) { in e2fsck_pass1()
1616 (LINUX_S_ISREG(inode->i_mode) || in e2fsck_pass1()
[all …]
Dpass2.c552 should_be = ext2_file_type(inode.i_mode); in check_filetype()
1665 ext2fs_inode_alloc_stats2(fs, ino, -1, LINUX_S_ISDIR(inode.i_mode)); in deallocate_inode()
1696 if (LINUX_S_ISREG(inode.i_mode) && in deallocate_inode()
1759 if (!LINUX_S_ISDIR(inode.i_mode) && !LINUX_S_ISREG(inode.i_mode) && in e2fsck_process_bad_inode()
1760 !LINUX_S_ISCHR(inode.i_mode) && !LINUX_S_ISBLK(inode.i_mode) && in e2fsck_process_bad_inode()
1761 !LINUX_S_ISLNK(inode.i_mode) && !LINUX_S_ISFIFO(inode.i_mode) && in e2fsck_process_bad_inode()
1762 !(LINUX_S_ISSOCK(inode.i_mode))) in e2fsck_process_bad_inode()
1764 else if (LINUX_S_ISCHR(inode.i_mode) in e2fsck_process_bad_inode()
1767 else if (LINUX_S_ISBLK(inode.i_mode) in e2fsck_process_bad_inode()
1770 else if (LINUX_S_ISFIFO(inode.i_mode) in e2fsck_process_bad_inode()
[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()
/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/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()
662 inode.i_mode = (statbuf.st_mode & ~LINUX_S_IFMT) | LINUX_S_IFREG; in do_write_internal()
689 if (LINUX_S_ISREG(inode.i_mode)) { in do_write_internal()
Dfuse2fs.c644 perms = inode.i_mode & 0777; in check_inum_access()
664 if (!LINUX_S_ISREG(inode.i_mode)) in check_inum_access()
789 statbuf->st_mode = inode.i_mode; in stat_inode()
802 if (LINUX_S_ISCHR(inode.i_mode) || in stat_inode()
803 LINUX_S_ISBLK(inode.i_mode)) { in stat_inode()
865 if (!LINUX_S_ISLNK(inode.i_mode)) { in op_readlink()
1005 inode.i_mode = mode; in op_mknod()
1097 parent_sgid = inode.i_mode & S_ISGID; in op_mkdir()
1140 inode.i_mode = LINUX_S_IFDIR | (mode & ~(S_ISUID | fs->umask)) | in op_mkdir()
1269 LINUX_S_ISDIR(inode.i_mode)); in remove_inode()
[all …]
/external/f2fs-tools/fsck/
Dsegment.c117 ASSERT(!S_ISDIR(le16_to_cpu(inode->i.i_mode))); in f2fs_read()
118 ASSERT(!S_ISLNK(le16_to_cpu(inode->i.i_mode))); in f2fs_read()
199 ASSERT(!S_ISDIR(le16_to_cpu(inode->i.i_mode))); in f2fs_write()
200 ASSERT(!S_ISLNK(le16_to_cpu(inode->i.i_mode))); in f2fs_write()
279 ASSERT(!S_ISDIR(le16_to_cpu(inode->i.i_mode))); in f2fs_filesize_update()
280 ASSERT(!S_ISLNK(le16_to_cpu(inode->i.i_mode))); in f2fs_filesize_update()
/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()
Dls.c125 fprintf(ls->f,"/%u/%06o/%d/%d/%.*s/", ino, inode.i_mode, in list_dir_proc()
127 if (LINUX_S_ISDIR(inode.i_mode)) in list_dir_proc()
146 fprintf(ls->f, "%c%6u%c %6o ", lbr, ino, rbr, inode.i_mode); in list_dir_proc()
155 if (LINUX_S_ISDIR(inode.i_mode)) in list_dir_proc()
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()
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)) 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/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()
Dinode.c512 i->i_mode = inodeb->mode; in squashfs_new_inode()
586 i->i_mode |= S_IFREG; in squashfs_iget()
639 i->i_mode |= S_IFREG; in squashfs_iget()
685 i->i_mode |= S_IFDIR; in squashfs_iget()
723 i->i_mode |= S_IFDIR; in squashfs_iget()
767 i->i_mode |= S_IFLNK; in squashfs_iget()
800 i->i_mode |= (inodeb->inode_type == in squashfs_iget()
803 init_special_inode(i, i->i_mode, inodep->rdev); in squashfs_iget()
833 i->i_mode |= (inodeb->inode_type == SQUASHFS_FIFO_TYPE) in squashfs_iget()
835 init_special_inode(i, i->i_mode, 0); in squashfs_iget()
/external/kernel-headers/original/uapi/linux/
Dminix_fs.h36 __u16 i_mode; member
52 __u16 i_mode; member
Dbfs_fs.h31 __le32 i_mode; member
/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/e2fsprogs/tests/f_dir_bad_mode/
Dname1 directory with corrupted i_mode
/external/e2fsprogs/tests/f_bigalloc_badinode/
Dscript15 set_inode_field testfile i_mode 0120000

1234