tag | line | file | source code |
i_mode | 263 | arch/alpha/kernel/osf_sys.c | if (!S_ISBLK(inode->i_mode)) { |
i_mode | 63 | arch/sparc/kernel/sys_sparc.c | if (!suser() && (inode->i_mode & (S_ISUID | S_ISGID))) { |
i_mode | 65 | arch/sparc/kernel/sys_sparc.c | newattrs.ia_mode = inode->i_mode & ~(S_ISUID | S_ISGID); |
i_mode | 133 | drivers/block/loop.c | if (S_ISREG(lo->lo_inode->i_mode)) |
i_mode | 255 | drivers/block/loop.c | if (S_ISBLK(inode->i_mode)) { |
i_mode | 261 | drivers/block/loop.c | } else if (S_ISREG(inode->i_mode)) { |
i_mode | 289 | drivers/block/loop.c | if (S_ISBLK(lo->lo_inode->i_mode)) |
i_mode | 113 | fs/binfmt_aout.c | if (!S_ISREG(inode->i_mode)) |
i_mode | 1015 | fs/binfmt_elf.c | if (!S_ISREG(inode->i_mode)) |
i_mode | 686 | fs/dquot.c | if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) { |
i_mode | 969 | fs/dquot.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 1042 | fs/dquot.c | if (!S_ISBLK(ino->i_mode)) { |
i_mode | 451 | fs/exec.c | if (!S_ISREG(bprm->inode->i_mode)) /* must be regular file */ |
i_mode | 457 | fs/exec.c | i = bprm->inode->i_mode; |
i_mode | 472 | fs/exec.c | if (!(bprm->inode->i_mode & 0111) && fsuser()) |
i_mode | 75 | fs/ext/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 89 | fs/ext/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 90 | fs/ext/file.c | printk("ext_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 211 | fs/ext/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 212 | fs/ext/file.c | printk("ext_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 286 | fs/ext/freelists.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
i_mode | 173 | fs/ext/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 174 | fs/ext/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 370 | fs/ext/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 377 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 383 | fs/ext/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 385 | fs/ext/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 387 | fs/ext/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 389 | fs/ext/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 391 | fs/ext/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 393 | fs/ext/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 408 | fs/ext/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 414 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 161 | fs/ext/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 323 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 361 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 363 | fs/ext/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 365 | fs/ext/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 367 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 368 | fs/ext/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 370 | fs/ext/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 372 | fs/ext/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 374 | fs/ext/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 376 | fs/ext/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 447 | fs/ext/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->fs->umask); |
i_mode | 448 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 449 | fs/ext/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 547 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
i_mode | 555 | fs/ext/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 601 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
i_mode | 605 | fs/ext/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 642 | fs/ext/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 690 | fs/ext/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 794 | fs/ext/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 810 | fs/ext/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 815 | fs/ext/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 819 | fs/ext/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 64 | fs/ext/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 93 | fs/ext/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 227 | fs/ext/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 228 | fs/ext/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 28 | fs/ext2/acl.c | unsigned short mode = inode->i_mode; |
i_mode | 111 | fs/ext2/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 109 | fs/ext2/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 111 | fs/ext2/file.c | inode->i_mode); |
i_mode | 170 | fs/ext2/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 171 | fs/ext2/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 173 | fs/ext2/fsync.c | if (S_ISLNK(inode->i_mode) && !(inode->i_blocks)) |
i_mode | 243 | fs/ext2/ialloc.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 452 | fs/ext2/ialloc.c | inode->i_mode = mode; |
i_mode | 460 | fs/ext2/ialloc.c | else if (dir->i_mode & S_ISGID) { |
i_mode | 112 | fs/ext2/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 527 | fs/ext2/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 553 | fs/ext2/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 562 | fs/ext2/inode.c | else if (S_ISREG(inode->i_mode)) |
i_mode | 564 | fs/ext2/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 566 | fs/ext2/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 568 | fs/ext2/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 570 | fs/ext2/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 572 | fs/ext2/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 618 | fs/ext2/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 635 | fs/ext2/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 175 | fs/ext2/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 384 | fs/ext2/namei.c | inode->i_mode = mode; |
i_mode | 430 | fs/ext2/namei.c | inode->i_mode = mode; |
i_mode | 432 | fs/ext2/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 434 | fs/ext2/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 436 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 437 | fs/ext2/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 439 | fs/ext2/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 441 | fs/ext2/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 443 | fs/ext2/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 445 | fs/ext2/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 520 | fs/ext2/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->fs->umask); |
i_mode | 521 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 522 | fs/ext2/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 636 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
i_mode | 642 | fs/ext2/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 710 | fs/ext2/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 721 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
i_mode | 768 | fs/ext2/namei.c | inode->i_mode = S_IFLNK | S_IRWXUGO; |
i_mode | 841 | fs/ext2/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 963 | fs/ext2/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 984 | fs/ext2/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 986 | fs/ext2/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
i_mode | 999 | fs/ext2/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 1003 | fs/ext2/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 1005 | fs/ext2/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
i_mode | 70 | fs/ext2/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 105 | fs/ext2/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 324 | fs/ext2/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 325 | fs/ext2/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 248 | fs/fat/cache.c | if (inode->i_ino == MSDOS_ROOT_INO || (S_ISDIR(inode->i_mode) && |
i_mode | 119 | fs/fat/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 173 | fs/fat/file.c | if (!S_ISREG(inode->i_mode) && !S_ISLNK(inode->i_mode)) { |
i_mode | 174 | fs/fat/file.c | printk("fat_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 287 | fs/fat/file.c | if (!S_ISREG(inode->i_mode) && !S_ISLNK(inode->i_mode)) { |
i_mode | 288 | fs/fat/file.c | printk("fat_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 376 | fs/fat/inode.c | inode->i_mode = (S_IRWXUGO & ~MSDOS_SB(inode->i_sb)->options.fs_umask) | |
i_mode | 401 | fs/fat/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,S_IRWXUGO & |
i_mode | 426 | fs/fat/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr, |
i_mode | 475 | fs/fat/inode.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 483 | fs/fat/inode.c | raw_entry->attr |= MSDOS_MKATTR(inode->i_mode) | |
i_mode | 520 | fs/fat/inode.c | if (IS_NOEXEC(inode) && !S_ISDIR(inode->i_mode)) |
i_mode | 521 | fs/fat/inode.c | inode->i_mode &= S_IFMT | S_IRUGO | S_IWUGO; |
i_mode | 523 | fs/fat/inode.c | inode->i_mode |= S_IXUGO; |
i_mode | 525 | fs/fat/inode.c | inode->i_mode = ((inode->i_mode & S_IFMT) | ((((inode->i_mode & S_IRWXU |
i_mode | 210 | fs/fat/misc.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 490 | fs/fat/misc.c | if (!S_ISDIR(dir->i_mode)) panic("Non-directory fed to m_p_i"); |
i_mode | 100 | fs/fat/mmap.c | if (!inode->i_sb || !S_ISREG(inode->i_mode)) |
i_mode | 151 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
i_mode | 156 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
i_mode | 641 | fs/hpfs/hpfs_fs.c | inode->i_mode = 0; |
i_mode | 655 | fs/hpfs/hpfs_fs.c | inode->i_mode = s->s_hpfs_mode; |
i_mode | 670 | fs/hpfs/hpfs_fs.c | inode->i_mode |= S_IFDIR; |
i_mode | 672 | fs/hpfs/hpfs_fs.c | inode->i_mode |= S_IFREG; |
i_mode | 673 | fs/hpfs/hpfs_fs.c | inode->i_mode &= ~0111; |
i_mode | 691 | fs/hpfs/hpfs_fs.c | if (S_ISREG(inode->i_mode)) { |
i_mode | 706 | fs/hpfs/hpfs_fs.c | inode->i_mode = 0; |
i_mode | 889 | fs/hpfs/hpfs_fs.c | if (inode == 0 || !S_ISREG(inode->i_mode)) |
i_mode | 1132 | fs/hpfs/hpfs_fs.c | if (!S_ISDIR(dir->i_mode)) |
i_mode | 1182 | fs/hpfs/hpfs_fs.c | inode->i_mode &= ~0222; |
i_mode | 1379 | fs/hpfs/hpfs_fs.c | || !S_ISDIR(inode->i_mode)) |
i_mode | 234 | fs/inode.c | if (S_ISREG(file->f_inode->i_mode) && (file->f_mode & 2)) |
i_mode | 325 | fs/inode.c | inode->i_mode = attr->ia_mode; |
i_mode | 327 | fs/inode.c | inode->i_mode &= ~S_ISGID; |
i_mode | 422 | fs/inode.c | kdevname(inode->i_rdev), inode->i_ino, inode->i_mode); |
i_mode | 562 | fs/inode.c | inode->i_mode |= S_IFIFO | S_IRUSR | S_IWUSR; |
i_mode | 100 | fs/ioctl.c | if (filp->f_inode && S_ISREG(filp->f_inode->i_mode)) |
i_mode | 272 | fs/isofs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 501 | fs/isofs/inode.c | inode->i_mode = S_IRUGO | S_IXUGO | S_IFDIR; |
i_mode | 508 | fs/isofs/inode.c | inode->i_mode = inode->i_sb->u.isofs_sb.s_mode; /* Everybody gets to read the file. */ |
i_mode | 510 | fs/isofs/inode.c | inode->i_mode |= S_IFREG; |
i_mode | 516 | fs/isofs/inode.c | inode->i_mode |= S_IXUGO; /* execute permission */ |
i_mode | 620 | fs/isofs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 622 | fs/isofs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 624 | fs/isofs/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 626 | fs/isofs/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 628 | fs/isofs/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 630 | fs/isofs/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 646 | fs/isofs/inode.c | inode->i_mode = S_IFREG; /*Regular file, no one gets to read*/ |
i_mode | 231 | fs/isofs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 296 | fs/isofs/rock.c | inode->i_mode = isonum_733(rr->u.PX.mode); |
i_mode | 375 | fs/isofs/rock.c | inode->i_mode = reloc->i_mode; |
i_mode | 62 | fs/isofs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 88 | fs/isofs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 133 | fs/minix/bitmap.c | raw_inode->i_mode = 0; |
i_mode | 161 | fs/minix/bitmap.c | raw_inode->i_mode = 0; |
i_mode | 253 | fs/minix/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
i_mode | 68 | fs/minix/dir.c | if (!inode || !inode->i_sb || !S_ISDIR(inode->i_mode)) |
i_mode | 80 | fs/minix/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 81 | fs/minix/file.c | printk("minix_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 151 | fs/minix/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 152 | fs/minix/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 312 | fs/minix/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 313 | fs/minix/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 642 | fs/minix/inode.c | inode->i_mode = 0; |
i_mode | 659 | fs/minix/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 666 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 671 | fs/minix/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 673 | fs/minix/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 675 | fs/minix/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 677 | fs/minix/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 679 | fs/minix/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 681 | fs/minix/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 696 | fs/minix/inode.c | inode->i_mode = 0; |
i_mode | 713 | fs/minix/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 722 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 727 | fs/minix/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 729 | fs/minix/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 731 | fs/minix/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 733 | fs/minix/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 735 | fs/minix/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 737 | fs/minix/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 778 | fs/minix/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 784 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 819 | fs/minix/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 827 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 117 | fs/minix/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 228 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 267 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 269 | fs/minix/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 271 | fs/minix/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 273 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 274 | fs/minix/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 276 | fs/minix/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 278 | fs/minix/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 280 | fs/minix/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 282 | fs/minix/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 350 | fs/minix/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->fs->umask); |
i_mode | 351 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 352 | fs/minix/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 445 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
i_mode | 453 | fs/minix/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 503 | fs/minix/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 512 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
i_mode | 554 | fs/minix/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 603 | fs/minix/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 704 | fs/minix/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 720 | fs/minix/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 722 | fs/minix/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
i_mode | 735 | fs/minix/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 739 | fs/minix/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 741 | fs/minix/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
i_mode | 58 | fs/minix/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 87 | fs/minix/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 180 | fs/minix/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 181 | fs/minix/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 387 | fs/minix/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 388 | fs/minix/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 189 | fs/msdos/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 400 | fs/msdos/namei.c | if (!S_ISDIR(inode->i_mode)) goto rmdir_done; |
i_mode | 503 | fs/msdos/namei.c | if (!S_ISREG(inode->i_mode) && nospc){ |
i_mode | 559 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) |
i_mode | 572 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
i_mode | 652 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) |
i_mode | 687 | fs/msdos/namei.c | if (exists && S_ISDIR(new_inode->i_mode)) { |
i_mode | 707 | fs/msdos/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 101 | fs/namei.c | int mode = inode->i_mode; |
i_mode | 127 | fs/namei.c | if ((inode->i_count > 1) && S_ISREG(inode->i_mode)) /* shortcut */ |
i_mode | 391 | fs/namei.c | if (S_ISDIR(inode->i_mode) && (flag & 2)) { |
i_mode | 399 | fs/namei.c | if (S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { |
i_mode | 409 | fs/namei.c | else if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { |
i_mode | 211 | fs/ncpfs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 742 | fs/ncpfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) |
i_mode | 889 | fs/ncpfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) |
i_mode | 951 | fs/ncpfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) |
i_mode | 986 | fs/ncpfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) |
i_mode | 1030 | fs/ncpfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) |
i_mode | 1075 | fs/ncpfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) |
i_mode | 1088 | fs/ncpfs/dir.c | if (!new_dir || !S_ISDIR(new_dir->i_mode)) |
i_mode | 101 | fs/ncpfs/file.c | if (!S_ISREG(inode->i_mode)) |
i_mode | 104 | fs/ncpfs/file.c | inode->i_mode); |
i_mode | 184 | fs/ncpfs/file.c | if (!S_ISREG(inode->i_mode)) |
i_mode | 187 | fs/ncpfs/file.c | inode->i_mode); |
i_mode | 78 | fs/ncpfs/inode.c | inode->i_mode = NCP_SERVER(inode)->m.dir_mode; |
i_mode | 85 | fs/ncpfs/inode.c | inode->i_mode = NCP_SERVER(inode)->m.file_mode; |
i_mode | 89 | fs/ncpfs/inode.c | DDPRINTK("ncp_read_inode: inode->i_mode = %u\n", inode->i_mode); |
i_mode | 114 | fs/ncpfs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 118 | fs/ncpfs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 147 | fs/ncpfs/inode.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 186 | fs/ncpfs/inode.c | || (!S_ISSOCK(ncp_filp->f_inode->i_mode))) |
i_mode | 195 | fs/ncpfs/inode.c | || (!S_ISSOCK(wdog_filp->f_inode->i_mode))) |
i_mode | 204 | fs/ncpfs/inode.c | || (!S_ISSOCK(msg_filp->f_inode->i_mode))) |
i_mode | 144 | fs/ncpfs/mmap.c | if (!inode->i_sb || !S_ISREG(inode->i_mode)) |
i_mode | 132 | fs/ncpfs/sock.c | || (!S_ISSOCK(inode->i_mode))) |
i_mode | 184 | fs/ncpfs/sock.c | || (!S_ISSOCK(inode->i_mode))) |
i_mode | 277 | fs/ncpfs/sock.c | || (!S_ISSOCK(inode->i_mode))) |
i_mode | 101 | fs/nfs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) { |
i_mode | 338 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 379 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 413 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 444 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 468 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 488 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 510 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 543 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 568 | fs/nfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
i_mode | 574 | fs/nfs/dir.c | if (!new_dir || !S_ISDIR(new_dir->i_mode)) { |
i_mode | 615 | fs/nfs/dir.c | was_empty = (inode->i_mode == 0); |
i_mode | 616 | fs/nfs/dir.c | inode->i_mode = fattr->mode; |
i_mode | 626 | fs/nfs/dir.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 634 | fs/nfs/dir.c | if (S_ISREG(inode->i_mode)) |
i_mode | 636 | fs/nfs/dir.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 638 | fs/nfs/dir.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 640 | fs/nfs/dir.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 642 | fs/nfs/dir.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 644 | fs/nfs/dir.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 164 | fs/nfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 166 | fs/nfs/file.c | inode->i_mode); |
i_mode | 58 | fs/nfs/inode.c | inode->i_mode = 0; |
i_mode | 115 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
i_mode | 282 | fs/nfs/inode.c | sattr.size = S_ISREG(inode->i_mode) ? attr->ia_size : -1; |
i_mode | 64 | fs/nfs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 102 | fs/nfs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 91 | fs/open.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 127 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & FMODE_WRITE)) |
i_mode | 259 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 282 | fs/open.c | if (!S_ISDIR(inode->i_mode)) |
i_mode | 300 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 328 | fs/open.c | mode = inode->i_mode; |
i_mode | 329 | fs/open.c | newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); |
i_mode | 353 | fs/open.c | mode = inode->i_mode; |
i_mode | 354 | fs/open.c | newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); |
i_mode | 381 | fs/open.c | newattrs.ia_mode = inode->i_mode; |
i_mode | 388 | fs/open.c | if (user != inode->i_uid && (inode->i_mode & S_ISUID)) { |
i_mode | 395 | fs/open.c | if (group != inode->i_gid && (inode->i_mode & S_ISGID)) { |
i_mode | 433 | fs/open.c | newattrs.ia_mode = inode->i_mode; |
i_mode | 440 | fs/open.c | if (user != inode->i_uid && (inode->i_mode & S_ISUID)) { |
i_mode | 447 | fs/open.c | if (group != inode->i_gid && (inode->i_mode & S_ISGID)) { |
i_mode | 70 | fs/proc/fd.c | if (!pid || ino != PROC_PID_FD || !S_ISDIR(dir->i_mode)) { |
i_mode | 130 | fs/proc/fd.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 81 | fs/proc/inode.c | inode->i_mode = de->mode; |
i_mode | 139 | fs/proc/inode.c | inode->i_mode = 0; |
i_mode | 156 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; |
i_mode | 167 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUSR; |
i_mode | 174 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; |
i_mode | 179 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUSR; |
i_mode | 184 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO | S_IWUSR; |
i_mode | 189 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO; |
i_mode | 206 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR; |
i_mode | 213 | fs/proc/inode.c | inode->i_mode = S_IFLNK | S_IRWXU; |
i_mode | 216 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUSR | S_IXUSR; |
i_mode | 221 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUSR; |
i_mode | 228 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO; |
i_mode | 232 | fs/proc/inode.c | inode->i_mode = S_IFIFO | S_IRUGO; |
i_mode | 243 | fs/proc/inode.c | inode->i_mode = S_IFLNK; |
i_mode | 245 | fs/proc/inode.c | inode->i_mode |= S_IRUSR | S_IXUSR; |
i_mode | 247 | fs/proc/inode.c | inode->i_mode |= S_IWUSR | S_IXUSR; |
i_mode | 144 | fs/proc/link.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 396 | fs/proc/root.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 505 | fs/proc/root.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 148 | fs/read_write.c | if (!suser() && (inode->i_mode & (S_ISUID | S_ISGID))) { |
i_mode | 150 | fs/read_write.c | newattrs.ia_mode = inode->i_mode & ~(S_ISUID | S_ISGID); |
i_mode | 170 | fs/smbfs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) { |
i_mode | 669 | fs/smbfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 771 | fs/smbfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 813 | fs/smbfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 839 | fs/smbfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 864 | fs/smbfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 890 | fs/smbfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
i_mode | 896 | fs/smbfs/dir.c | if (!new_dir || !S_ISDIR(new_dir->i_mode)) { |
i_mode | 81 | fs/smbfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 83 | fs/smbfs/file.c | inode->i_mode); |
i_mode | 156 | fs/smbfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 158 | fs/smbfs/file.c | inode->i_mode); |
i_mode | 90 | fs/smbfs/inode.c | inode->i_mode = SMB_SERVER(inode)->m.dir_mode; |
i_mode | 92 | fs/smbfs/inode.c | inode->i_mode = SMB_SERVER(inode)->m.file_mode; |
i_mode | 94 | fs/smbfs/inode.c | DDPRINTK("smb_read_inode: inode->i_mode = %u\n", inode->i_mode); |
i_mode | 112 | fs/smbfs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 114 | fs/smbfs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 139 | fs/smbfs/inode.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 199 | fs/smbfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
i_mode | 111 | fs/smbfs/mmap.c | if (!inode->i_sb || !S_ISREG(inode->i_mode)) |
i_mode | 117 | fs/smbfs/sock.c | || (!S_ISSOCK(inode->i_mode))) { |
i_mode | 165 | fs/smbfs/sock.c | || (!S_ISSOCK(inode->i_mode))) { |
i_mode | 31 | fs/stat.c | tmp.st_mode = inode->i_mode; |
i_mode | 55 | fs/stat.c | tmp.st_mode = inode->i_mode; |
i_mode | 564 | fs/super.c | if (S_ISBLK(inode->i_mode)) { |
i_mode | 625 | fs/super.c | if (!S_ISDIR(dir_i->i_mode)) { |
i_mode | 777 | fs/super.c | if (!S_ISBLK(inode->i_mode)) { |
i_mode | 957 | fs/super.c | if (!error && !S_ISDIR(inode->i_mode)) error = -ENOTDIR; |
i_mode | 76 | fs/sysv/dir.c | if (!inode || !(sb = inode->i_sb) || !S_ISDIR(inode->i_mode)) |
i_mode | 91 | fs/sysv/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 92 | fs/sysv/file.c | printk("sysv_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 214 | fs/sysv/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 215 | fs/sysv/file.c | printk("sysv_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 185 | fs/sysv/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 186 | fs/sysv/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 135 | fs/sysv/ialloc.c | if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) |
i_mode | 156 | fs/sysv/ialloc.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
i_mode | 164 | fs/sysv/ialloc.c | inode->i_mode = 0; /* for sysv_write_inode() */ |
i_mode | 201 | fs/sysv/ialloc.c | if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) |
i_mode | 809 | fs/sysv/inode.c | inode->i_mode = 0; |
i_mode | 824 | fs/sysv/inode.c | mode = raw_inode->i_mode; |
i_mode | 828 | fs/sysv/inode.c | inode->i_mode = mode; |
i_mode | 844 | fs/sysv/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 856 | fs/sysv/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 858 | fs/sysv/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 860 | fs/sysv/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 862 | fs/sysv/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 864 | fs/sysv/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 866 | fs/sysv/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 911 | fs/sysv/inode.c | mode = inode->i_mode; |
i_mode | 914 | fs/sysv/inode.c | raw_inode->i_mode = mode; |
i_mode | 929 | fs/sysv/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 113 | fs/sysv/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 221 | fs/sysv/namei.c | inode->i_mode = mode; |
i_mode | 260 | fs/sysv/namei.c | inode->i_mode = mode; |
i_mode | 262 | fs/sysv/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 264 | fs/sysv/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 266 | fs/sysv/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 267 | fs/sysv/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 269 | fs/sysv/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 271 | fs/sysv/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 273 | fs/sysv/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 275 | fs/sysv/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 341 | fs/sysv/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->fs->umask); |
i_mode | 342 | fs/sysv/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 343 | fs/sysv/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 437 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
i_mode | 445 | fs/sysv/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 494 | fs/sysv/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 503 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
i_mode | 547 | fs/sysv/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 598 | fs/sysv/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 698 | fs/sysv/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 714 | fs/sysv/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 716 | fs/sysv/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
i_mode | 729 | fs/sysv/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 733 | fs/sysv/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 735 | fs/sysv/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
i_mode | 64 | fs/sysv/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 94 | fs/sysv/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 279 | fs/sysv/truncate.c | if (S_ISLNK(inode->i_mode)) |
i_mode | 281 | fs/sysv/truncate.c | else if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) |
i_mode | 324 | fs/umsdos/dir.c | if (S_ISDIR(inode->i_mode)) umsdos_lockcreate(inode); |
i_mode | 344 | fs/umsdos/dir.c | inode->i_mode = entry->mode; |
i_mode | 404 | fs/umsdos/dir.c | if (S_ISDIR(inode->i_mode)) umsdos_unlockcreate(inode); |
i_mode | 555 | fs/umsdos/dir.c | PRINTK (("locate_path mode %x ",inode->i_mode)); |
i_mode | 556 | fs/umsdos/dir.c | if (!S_ISDIR(inode->i_mode)){ |
i_mode | 151 | fs/umsdos/inode.c | if (S_ISREG(inode->i_mode)){ |
i_mode | 157 | fs/umsdos/inode.c | }else if (S_ISDIR(inode->i_mode)){ |
i_mode | 161 | fs/umsdos/inode.c | }else if (S_ISLNK(inode->i_mode)){ |
i_mode | 163 | fs/umsdos/inode.c | }else if (S_ISCHR(inode->i_mode)){ |
i_mode | 165 | fs/umsdos/inode.c | }else if (S_ISBLK(inode->i_mode)){ |
i_mode | 167 | fs/umsdos/inode.c | }else if (S_ISFIFO(inode->i_mode)){ |
i_mode | 227 | fs/umsdos/inode.c | if (S_ISDIR(inode->i_mode) |
i_mode | 448 | fs/umsdos/inode.c | && S_ISDIR(pseudo->i_mode)){ |
i_mode | 454 | fs/umsdos/inode.c | && S_ISDIR(etc->i_mode)){ |
i_mode | 459 | fs/umsdos/inode.c | && S_ISREG(init->i_mode)) |
i_mode | 461 | fs/umsdos/inode.c | && S_ISREG(rc->i_mode))){ |
i_mode | 469 | fs/umsdos/inode.c | && S_ISDIR(sbin->i_mode)){ |
i_mode | 473 | fs/umsdos/inode.c | && S_ISREG(init->i_mode)){ |
i_mode | 279 | fs/umsdos/ioctl.c | data.stat.st_mode = inode->i_mode; |
i_mode | 220 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
i_mode | 334 | fs/umsdos/namei.c | if ( !(old_dir->i_mode & S_ISVTX) || fsuser() || |
i_mode | 341 | fs/umsdos/namei.c | !(new_dir->i_mode & S_ISVTX) || fsuser() || |
i_mode | 561 | fs/umsdos/namei.c | if (S_ISDIR(oldinode->i_mode)){ |
i_mode | 692 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
i_mode | 879 | fs/umsdos/namei.c | if ( !(dir->i_mode & S_ISVTX) || fsuser() || |
i_mode | 942 | fs/umsdos/namei.c | if ( !(dir->i_mode & S_ISVTX) || fsuser() || |
i_mode | 117 | fs/umsdos/rdir.c | }else if (S_ISDIR(inode->i_mode)){ |
i_mode | 72 | fs/umsdos/symlink.c | }else if (!S_ISLNK(inode->i_mode)){ |
i_mode | 105 | fs/umsdos/symlink.c | if (S_ISLNK(inode->i_mode)) { |
i_mode | 108 | fs/umsdos/symlink.c | PRINTK (("readlink %d %x bufsiz %d\n",ret,inode->i_mode,buflen)); |
i_mode | 920 | fs/vfat/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 1160 | fs/vfat/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 1191 | fs/vfat/namei.c | if ((!S_ISREG(inode->i_mode) && nospc) || IS_IMMUTABLE(inode)) { |
i_mode | 1385 | fs/vfat/namei.c | is_dir = S_ISDIR(old_inode->i_mode); |
i_mode | 1428 | fs/vfat/namei.c | new_is_dir = S_ISDIR(new_inode->i_mode); |
i_mode | 1503 | fs/vfat/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 327 | fs/xiafs/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
i_mode | 75 | fs/xiafs/dir.c | if (!inode || !inode->i_sb || !S_ISDIR(inode->i_mode)) |
i_mode | 86 | fs/xiafs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 204 | fs/xiafs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 148 | fs/xiafs/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 149 | fs/xiafs/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 381 | fs/xiafs/inode.c | inode->i_mode=0; |
i_mode | 395 | fs/xiafs/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 404 | fs/xiafs/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { |
i_mode | 415 | fs/xiafs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 417 | fs/xiafs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 419 | fs/xiafs/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 421 | fs/xiafs/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 423 | fs/xiafs/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 425 | fs/xiafs/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 458 | fs/xiafs/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 466 | fs/xiafs/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 126 | fs/xiafs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 261 | fs/xiafs/namei.c | inode->i_mode = mode; |
i_mode | 299 | fs/xiafs/namei.c | inode->i_mode = mode; |
i_mode | 301 | fs/xiafs/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 303 | fs/xiafs/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 305 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 306 | fs/xiafs/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 308 | fs/xiafs/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 310 | fs/xiafs/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 312 | fs/xiafs/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 314 | fs/xiafs/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 382 | fs/xiafs/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->fs->umask); |
i_mode | 383 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 384 | fs/xiafs/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 501 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
i_mode | 509 | fs/xiafs/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 554 | fs/xiafs/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 563 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
i_mode | 604 | fs/xiafs/namei.c | inode->i_mode = S_IFLNK | S_IRWXUGO; |
i_mode | 643 | fs/xiafs/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 734 | fs/xiafs/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 750 | fs/xiafs/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 755 | fs/xiafs/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 759 | fs/xiafs/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 55 | fs/xiafs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 92 | fs/xiafs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 183 | fs/xiafs/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 184 | fs/xiafs/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 196 | include/linux/ext2_fs.h | __u16 i_mode; /* File mode */ |
i_mode | 16 | include/linux/ext_fs.h | unsigned short i_mode; |
i_mode | 267 | include/linux/fs.h | umode_t i_mode; |
i_mode | 41 | include/linux/minix_fs.h | __u16 i_mode; |
i_mode | 57 | include/linux/minix_fs.h | __u16 i_mode; |
i_mode | 222 | include/linux/sysv_fs.h | unsigned short i_mode; |
i_mode | 22 | include/linux/xia_fs.h | mode_t i_mode; |
i_mode | 358 | kernel/sys.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 490 | kernel/sysctl.c | return test_perm(inode->i_mode, op); |
i_mode | 504 | mm/filemap.c | if (S_ISREG(inode->i_mode)) { |
i_mode | 778 | mm/filemap.c | if (!inode->i_sb || !S_ISREG(inode->i_mode)) |
i_mode | 334 | mm/swapfile.c | if (S_ISBLK(inode->i_mode) |
i_mode | 438 | mm/swapfile.c | if (S_ISBLK(swap_inode->i_mode)) { |
i_mode | 459 | mm/swapfile.c | } else if (!S_ISREG(swap_inode->i_mode)) |
i_mode | 251 | net/socket.c | inode->i_mode = S_IFSOCK; |
i_mode | 77 | net/unix/garbage.c | if(filp->f_inode->i_mode!=S_IFSOCK) |