Home
last modified time | relevance | path

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

123

/external/e2fsprogs/lib/ext2fs/
Dvalid_blk.c32 if (!LINUX_S_ISDIR(inode->i_mode) && !LINUX_S_ISREG(inode->i_mode) && in ext2fs_inode_has_valid_blocks2()
33 !LINUX_S_ISLNK(inode->i_mode)) in ext2fs_inode_has_valid_blocks2()
40 if (LINUX_S_ISLNK (inode->i_mode)) { in ext2fs_inode_has_valid_blocks2()
Dswapfs.c211 if (hostorder && LINUX_S_ISLNK(f->i_mode)) in ext2fs_swap_inode_full()
213 t->i_mode = ext2fs_swab16(f->i_mode); in ext2fs_swap_inode_full()
214 if (!hostorder && LINUX_S_ISLNK(t->i_mode)) in ext2fs_swap_inode_full()
Dtst_inode_size.c51 check_field(i_mode, 2); in main()
Dsymlink.c78 inode.i_mode = LINUX_S_IFLNK | 0777; in ext2fs_symlink()
Dmkdir.c84 inode.i_mode = LINUX_S_IFDIR | (0777 & ~fs->umask); in ext2fs_mkdir()
Dbmove.c149 pb.add_dir = (LINUX_S_ISDIR(inode.i_mode) && in ext2fs_move_blocks()
/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.c279 if (LINUX_S_ISDIR(inode->i_mode)) in expand_inode_expression()
309 fprintf(f, "0%o", inode->i_mode); in expand_inode_expression()
321 fprintf(f, "%u", (LINUX_S_ISDIR(inode->i_mode) ? in expand_inode_expression()
331 if (LINUX_S_ISREG(inode->i_mode)) in expand_inode_expression()
333 else if (LINUX_S_ISDIR(inode->i_mode)) in expand_inode_expression()
335 else if (LINUX_S_ISCHR(inode->i_mode)) in expand_inode_expression()
337 else if (LINUX_S_ISBLK(inode->i_mode)) in expand_inode_expression()
339 else if (LINUX_S_ISFIFO(inode->i_mode)) in expand_inode_expression()
341 else if (LINUX_S_ISLNK(inode->i_mode)) in expand_inode_expression()
343 else if (LINUX_S_ISSOCK(inode->i_mode)) in expand_inode_expression()
[all …]
Dpass1.c423 if (LINUX_S_ISDIR(inode->i_mode) || LINUX_S_ISREG(inode->i_mode) || in check_is_really_dir()
424 LINUX_S_ISLNK(inode->i_mode) || inode->i_block[0] == 0) in check_is_really_dir()
475 if ((LINUX_S_ISCHR(inode->i_mode) || LINUX_S_ISBLK(inode->i_mode)) && in check_is_really_dir()
510 inode->i_mode = (inode->i_mode & 07777) | LINUX_S_IFDIR; in check_is_really_dir()
813 (LINUX_S_ISREG(inode->i_mode) || in e2fsck_pass1()
814 LINUX_S_ISDIR(inode->i_mode))) { in e2fsck_pass1()
840 if ((inode->i_mode || inode->i_uid || inode->i_gid || in e2fsck_pass1()
887 if (!LINUX_S_ISDIR(inode->i_mode)) { in e2fsck_pass1()
910 if (!LINUX_S_ISREG(inode->i_mode) && in e2fsck_pass1()
913 inode->i_mode = LINUX_S_IFREG; in e2fsck_pass1()
[all …]
Dpass2.c526 should_be = ext2_file_type(inode.i_mode); in check_filetype()
1224 ext2fs_inode_alloc_stats2(fs, ino, -1, LINUX_S_ISDIR(inode.i_mode)); in deallocate_inode()
1253 if (LINUX_S_ISREG(inode.i_mode) && in deallocate_inode()
1315 if (!LINUX_S_ISDIR(inode.i_mode) && !LINUX_S_ISREG(inode.i_mode) && in e2fsck_process_bad_inode()
1316 !LINUX_S_ISCHR(inode.i_mode) && !LINUX_S_ISBLK(inode.i_mode) && in e2fsck_process_bad_inode()
1317 !LINUX_S_ISLNK(inode.i_mode) && !LINUX_S_ISFIFO(inode.i_mode) && in e2fsck_process_bad_inode()
1318 !(LINUX_S_ISSOCK(inode.i_mode))) in e2fsck_process_bad_inode()
1320 else if (LINUX_S_ISCHR(inode.i_mode) in e2fsck_process_bad_inode()
1323 else if (LINUX_S_ISBLK(inode.i_mode) in e2fsck_process_bad_inode()
1326 else if (LINUX_S_ISFIFO(inode.i_mode) in e2fsck_process_bad_inode()
[all …]
Dpass4.c56 (LINUX_S_ISREG(inode->i_mode) || LINUX_S_ISDIR(inode->i_mode))) { in disconnect_inode()
65 LINUX_S_ISDIR(inode->i_mode)); in disconnect_inode()
Dquota.c34 inode.i_mode = LINUX_S_IFREG | 0600; in move_quota_inode()
Dpass3.c214 inode.i_mode = 040755; in check_root()
459 inode.i_mode = 040700; in e2fsck_get_lost_and_found()
527 file_type = ext2_file_type(inode.i_mode); in e2fsck_reconnect_file()
/external/e2fsprogs/ext2ed/
Dinode_com.c145 wmove (show_pad,0,40);wprintw (show_pad,"octal = %06o ",inode_ptr->i_mode); in type_ext2_inode___show()
147 temp=inode_ptr->i_mode & 0x1ff; in type_ext2_inode___show()
242 if (type_data.u.t_ext2_inode.i_mode==0) in type_ext2_inode___show()
245 if (S_ISREG (type_data.u.t_ext2_inode.i_mode)) in type_ext2_inode___show()
248 if (S_ISDIR (type_data.u.t_ext2_inode.i_mode)) in type_ext2_inode___show()
251 if (S_ISLNK (type_data.u.t_ext2_inode.i_mode)) { in type_ext2_inode___show()
262 if (S_ISCHR (type_data.u.t_ext2_inode.i_mode)) in type_ext2_inode___show()
265 if (S_ISBLK (type_data.u.t_ext2_inode.i_mode)) in type_ext2_inode___show()
334 if (!S_ISREG (type_data.u.t_ext2_inode.i_mode)) { in type_ext2_inode___file()
352 if (!S_ISDIR (type_data.u.t_ext2_inode.i_mode)) { in type_ext2_inode___dir()
Ddir_com.c268 if (S_ISLNK (type_data.u.t_ext2_inode.i_mode)) {/* Symbolic link ? */ in type_dir___cd()
290 if (S_ISDIR (type_data.u.t_ext2_inode.i_mode)) { /* Is it an inode of a directory ? */ in type_dir___cd()
/external/e2fsprogs/debugfs/
Dls.c81 fprintf(ls->f,"/%u/%06o/%d/%d/%s/",ino,inode.i_mode,inode.i_uid, inode.i_gid,name); in list_dir_proc()
82 if (LINUX_S_ISDIR(inode.i_mode)) in list_dir_proc()
102 inode.i_mode, dirent->name_len >> 8, in list_dir_proc()
104 if (LINUX_S_ISDIR(inode.i_mode)) in list_dir_proc()
Ddump.c76 i = fchmod(fd, mode_xlate(inode->i_mode)); in fix_perms()
78 i = chmod(name, mode_xlate(inode->i_mode)); in fix_perms()
268 if (LINUX_S_ISLNK(inode->i_mode)) in rdump_inode()
270 else if (LINUX_S_ISREG(inode->i_mode)) { in rdump_inode()
283 else if (LINUX_S_ISDIR(inode->i_mode) && strcmp(name, ".") && strcmp(name, "..")) { in rdump_inode()
Ddebugfs.c738 if (LINUX_S_ISDIR(inode->i_mode)) i_type = "directory"; in internal_dump_inode()
739 else if (LINUX_S_ISREG(inode->i_mode)) i_type = "regular"; in internal_dump_inode()
740 else if (LINUX_S_ISLNK(inode->i_mode)) i_type = "symlink"; in internal_dump_inode()
741 else if (LINUX_S_ISBLK(inode->i_mode)) i_type = "block special"; in internal_dump_inode()
742 else if (LINUX_S_ISCHR(inode->i_mode)) i_type = "character special"; in internal_dump_inode()
743 else if (LINUX_S_ISFIFO(inode->i_mode)) i_type = "FIFO"; in internal_dump_inode()
744 else if (LINUX_S_ISSOCK(inode->i_mode)) i_type = "socket"; in internal_dump_inode()
748 prefix, inode->i_mode & 0777, inode->i_flags); in internal_dump_inode()
759 if (LINUX_S_ISREG(inode->i_mode)) in internal_dump_inode()
767 inode->i_file_acl, LINUX_S_ISDIR(inode->i_mode) ? inode->i_dir_acl : 0, in internal_dump_inode()
[all …]
Dncheck.c76 filetype != ext2_file_type(inode.i_mode)) { in ncheck_proc()
165 if (!LINUX_S_ISDIR(inode.i_mode)) in do_ncheck()
Dfilefrag.c164 LINUX_S_ISDIR(inode->i_mode) ? " (dir)" : ""); in filefrag()
208 if ((fs->options & RECURSIVE_OPT) && LINUX_S_ISDIR(inode.i_mode)) { in filefrag_dir_proc()
314 if (!LINUX_S_ISDIR(inode.i_mode) || (fs.options & DIR_OPT)) in do_filefrag()
/external/kernel-headers/original/uapi/linux/
Dminix_fs.h35 __u16 i_mode; member
51 __u16 i_mode; member
Dbfs_fs.h30 __le32 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()
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/e2fsprogs/tests/f_dir_bad_mode/
Dname1 directory with corrupted i_mode

123