Home
last modified time | relevance | path

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

1234

/third_party/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.c104 inode.i_mode = LINUX_S_IFLNK | 0777; in ext2fs_symlink()
210 return LINUX_S_ISLNK(inode->i_mode) && EXT2_I_SIZE(inode) && in ext2fs_is_fast_symlink()
Dswapfs.c257 islnk = LINUX_S_ISLNK(f->i_mode); in ext2fs_swap_inode_full()
263 t->i_mode = ext2fs_swab16(f->i_mode); in ext2fs_swap_inode_full()
278 islnk = LINUX_S_ISLNK(t->i_mode); in ext2fs_swap_inode_full()
Dtst_inode_size.c52 check_field(i_mode, 2); in main()
Dinode.c394 if (!LINUX_S_ISREG(inode->i_mode) && in block_map_looks_insane()
395 !LINUX_S_ISLNK(inode->i_mode) && in block_map_looks_insane()
396 !LINUX_S_ISDIR(inode->i_mode)) in block_map_looks_insane()
398 if (LINUX_S_ISLNK(inode->i_mode) && in block_map_looks_insane()
1107 if (!LINUX_S_ISDIR(inode.i_mode)) in ext2fs_check_directory()
/third_party/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()
/third_party/e2fsprogs/e2fsck/
Dmessage.c301 fprintf(f, "0%o", inode->i_mode); in expand_inode_expression()
314 fprintf(f, "%u", (LINUX_S_ISDIR(inode->i_mode) ? in expand_inode_expression()
324 if (LINUX_S_ISREG(inode->i_mode)) in expand_inode_expression()
326 else if (LINUX_S_ISDIR(inode->i_mode)) in expand_inode_expression()
328 else if (LINUX_S_ISCHR(inode->i_mode)) in expand_inode_expression()
330 else if (LINUX_S_ISBLK(inode->i_mode)) in expand_inode_expression()
332 else if (LINUX_S_ISFIFO(inode->i_mode)) in expand_inode_expression()
334 else if (LINUX_S_ISLNK(inode->i_mode)) in expand_inode_expression()
336 else if (LINUX_S_ISSOCK(inode->i_mode)) in expand_inode_expression()
340 inode->i_mode); in expand_inode_expression()
Dpass1.c671 if (LINUX_S_ISDIR(inode->i_mode) || LINUX_S_ISREG(inode->i_mode) || in check_is_really_dir()
672 LINUX_S_ISLNK(inode->i_mode) || inode->i_block[0] == 0) in check_is_really_dir()
762 if ((LINUX_S_ISCHR(inode->i_mode) || LINUX_S_ISBLK(inode->i_mode)) && in check_is_really_dir()
798 inode->i_mode = (inode->i_mode & 07777) | LINUX_S_IFDIR; in check_is_really_dir()
997 if (LINUX_S_ISCHR(inode->i_mode) || in fix_inline_data_extents_file()
998 LINUX_S_ISBLK(inode->i_mode) || in fix_inline_data_extents_file()
999 LINUX_S_ISFIFO(inode->i_mode) || in fix_inline_data_extents_file()
1000 LINUX_S_ISSOCK(inode->i_mode)) { in fix_inline_data_extents_file()
1472 if (!inode->i_dtime && inode->i_mode) { in e2fsck_pass1()
1486 ((!LINUX_S_ISDIR(inode->i_mode) && in e2fsck_pass1()
[all …]
Dpass2.c619 should_be = ext2_file_type(inode.i_mode); in check_filetype()
966 return LINUX_S_ISREG(inode.i_mode) || in needs_encryption()
967 LINUX_S_ISDIR(inode.i_mode) || in needs_encryption()
968 LINUX_S_ISLNK(inode.i_mode); in needs_encryption()
1858 ext2fs_inode_alloc_stats2(fs, ino, -1, LINUX_S_ISDIR(inode.i_mode)); in deallocate_inode()
1890 if (LINUX_S_ISREG(inode.i_mode)) in deallocate_inode()
1892 else if (LINUX_S_ISDIR(inode.i_mode)) in deallocate_inode()
1955 if (!LINUX_S_ISDIR(inode.i_mode) && !LINUX_S_ISREG(inode.i_mode) && in e2fsck_process_bad_inode()
1956 !LINUX_S_ISCHR(inode.i_mode) && !LINUX_S_ISBLK(inode.i_mode) && in e2fsck_process_bad_inode()
1957 !LINUX_S_ISLNK(inode.i_mode) && !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()
Dpass3.c213 inode.i_mode = 040755; in check_root()
461 if (LINUX_S_ISDIR(inode.i_mode)) in e2fsck_get_lost_and_found()
524 inode.i_mode = 040700; in e2fsck_get_lost_and_found()
621 file_type = ext2_file_type(inode.i_mode); in e2fsck_reconnect_file()
/third_party/e2fsprogs/misc/
De2fuzz.c77 if (S_ISDIR(fb->inode->i_mode) || !metadata_only || blockcnt < 0) { in find_block_helper()
144 S_ISLNK(inode.i_mode) || S_ISFIFO(inode.i_mode) || in find_metadata_blocks()
145 S_ISCHR(inode.i_mode) || S_ISBLK(inode.i_mode) || in find_metadata_blocks()
146 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()
127 inode.i_mode = (LINUX_S_IFMT & inode.i_mode) | (~S_IFMT & st->st_mode); in set_inode_extra()
309 inode.i_mode = mode; in do_mknod_internal()
684 inode.i_mode = (statbuf.st_mode & ~S_IFMT) | LINUX_S_IFREG; in do_write_internal()
711 if (LINUX_S_ISREG(inode.i_mode)) { in do_write_internal()
Dfuse2fs.c647 perms = inode.i_mode & 0777; in check_inum_access()
667 if (!LINUX_S_ISREG(inode.i_mode)) in check_inum_access()
775 statbuf->st_mode = inode.i_mode; in stat_inode()
789 if (LINUX_S_ISCHR(inode.i_mode) || in stat_inode()
790 LINUX_S_ISBLK(inode.i_mode)) { in stat_inode()
852 if (!LINUX_S_ISLNK(inode.i_mode)) { in op_readlink()
992 inode.i_mode = mode; in op_mknod()
1086 parent_sgid = inode.i_mode & S_ISGID; in op_mkdir()
1131 inode.i_mode = LINUX_S_IFDIR | (mode & ~(S_ISUID | fs->umask)) | in op_mkdir()
1260 LINUX_S_ISDIR(inode.i_mode)); in remove_inode()
[all …]
/third_party/f2fs-tools/fsck/
Dsegment.c140 ASSERT(S_ISREG(le16_to_cpu(inode->i.i_mode))); in f2fs_quota_size()
172 ASSERT(!S_ISDIR(le16_to_cpu(inode->i.i_mode))); in f2fs_read()
173 ASSERT(!S_ISLNK(le16_to_cpu(inode->i.i_mode))); in f2fs_read()
255 ASSERT(!S_ISDIR(le16_to_cpu(inode->i.i_mode))); in f2fs_write()
256 ASSERT(!S_ISLNK(le16_to_cpu(inode->i.i_mode))); in f2fs_write()
336 ASSERT(!S_ISDIR(le16_to_cpu(inode->i.i_mode))); in f2fs_filesize_update()
337 ASSERT(!S_ISLNK(le16_to_cpu(inode->i.i_mode))); in f2fs_filesize_update()
Dnode.c82 set_cold_node(node_blk, S_ISDIR(le16_to_cpu(f2fs_inode->i.i_mode))); in new_node_block()
86 if (S_ISDIR(le16_to_cpu(f2fs_inode->i.i_mode))) in new_node_block()
/third_party/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()
Ddebugfs.c842 if (LINUX_S_ISDIR(inode->i_mode)) i_type = "directory"; in internal_dump_inode()
843 else if (LINUX_S_ISREG(inode->i_mode)) i_type = "regular"; in internal_dump_inode()
844 else if (LINUX_S_ISLNK(inode->i_mode)) i_type = "symlink"; in internal_dump_inode()
845 else if (LINUX_S_ISBLK(inode->i_mode)) i_type = "block special"; in internal_dump_inode()
846 else if (LINUX_S_ISCHR(inode->i_mode)) i_type = "character special"; in internal_dump_inode()
847 else if (LINUX_S_ISFIFO(inode->i_mode)) i_type = "FIFO"; in internal_dump_inode()
848 else if (LINUX_S_ISSOCK(inode->i_mode)) i_type = "socket"; in internal_dump_inode()
852 prefix, inode->i_mode & 07777, inode->i_flags); in internal_dump_inode()
866 if (LINUX_S_ISREG(inode->i_mode) || LINUX_S_ISDIR(inode->i_mode)) in internal_dump_inode()
949 if (LINUX_S_ISLNK(inode->i_mode) && ext2fs_is_fast_symlink(inode)) in internal_dump_inode()
[all …]
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()
138 fprintf(ls->f, "%c%6u%c %6o ", lbr, ino, rbr, inode.i_mode); in list_dir_proc()
Dfilefrag.c170 LINUX_S_ISDIR(inode->i_mode) ? " (dir)" : ""); in filefrag()
214 if ((fs->options & RECURSIVE_OPT) && LINUX_S_ISDIR(inode.i_mode)) { in filefrag_dir_proc()
321 if (!LINUX_S_ISDIR(inode.i_mode) || (fs.options & DIR_OPT)) in do_filefrag()
/third_party/e2fsprogs/contrib/android/
Dperms.c83 inode.i_mode); in set_selinux_xattr()
140 params->fs_config_func(filename, S_ISDIR(inode.i_mode), in set_perms_and_caps()
149 inode.i_mode = (inode.i_mode & S_IFMT) | (imode & 0xffff); in set_perms_and_caps()
219 return S_ISDIR(inode.i_mode); in is_dir()
Dblock_list.c37 params->filename = LINUX_S_ISREG(inode->i_mode) ? path : NULL; in start_new_file()
/third_party/e2fsprogs/tests/f_dir_bad_mode/
Dname1 directory with corrupted i_mode
/third_party/e2fsprogs/tests/f_bigalloc_badinode/
Dscript15 set_inode_field testfile i_mode 0120000

1234