tag | line | file | source code |
i_mode | 146 | fs/exec.c | if (!S_ISREG(inode->i_mode)) |
i_mode | 561 | fs/exec.c | if (!S_ISREG(bprm.inode->i_mode)) { /* must be regular file */ |
i_mode | 573 | fs/exec.c | i = bprm.inode->i_mode; |
i_mode | 593 | fs/exec.c | !((bprm.inode->i_mode & 0111) && suser())) { |
i_mode | 72 | fs/ext/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 86 | fs/ext/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 87 | fs/ext/file.c | printk("ext_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 208 | fs/ext/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 209 | fs/ext/file.c | printk("ext_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 293 | fs/ext/freelists.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
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 | 362 | fs/ext/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 369 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 375 | fs/ext/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 377 | fs/ext/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 379 | fs/ext/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 381 | fs/ext/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 383 | fs/ext/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 385 | fs/ext/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 400 | fs/ext/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 406 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 167 | fs/ext/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 326 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 364 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 366 | fs/ext/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 368 | fs/ext/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 370 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 371 | fs/ext/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 373 | fs/ext/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 375 | fs/ext/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 377 | fs/ext/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 379 | fs/ext/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 450 | fs/ext/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 451 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 452 | fs/ext/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 546 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 553 | fs/ext/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 599 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 603 | fs/ext/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 639 | fs/ext/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 687 | fs/ext/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 791 | fs/ext/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 807 | fs/ext/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 812 | fs/ext/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 816 | fs/ext/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 62 | fs/ext/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 91 | 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 | 27 | fs/ext2/acl.c | unsigned short mode = inode->i_mode; |
i_mode | 101 | fs/ext2/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 94 | fs/ext2/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 96 | fs/ext2/file.c | inode->i_mode); |
i_mode | 247 | fs/ext2/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 249 | fs/ext2/file.c | inode->i_mode); |
i_mode | 173 | fs/ext2/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 174 | fs/ext2/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 176 | fs/ext2/fsync.c | if (S_ISLNK(inode->i_mode) && !(inode->i_blocks)) |
i_mode | 267 | fs/ext2/ialloc.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 473 | fs/ext2/ialloc.c | inode->i_mode = mode; |
i_mode | 481 | fs/ext2/ialloc.c | else if (dir->i_mode & S_ISGID) { |
i_mode | 118 | fs/ext2/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 530 | fs/ext2/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 554 | fs/ext2/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 563 | fs/ext2/inode.c | else if (S_ISREG(inode->i_mode)) |
i_mode | 565 | fs/ext2/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 567 | fs/ext2/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 569 | fs/ext2/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 571 | fs/ext2/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 573 | fs/ext2/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 615 | fs/ext2/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 632 | fs/ext2/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 180 | fs/ext2/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 382 | 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 | 522 | fs/ext2/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->umask); |
i_mode | 523 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 524 | fs/ext2/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 633 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 638 | fs/ext2/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 709 | fs/ext2/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 718 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 767 | 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 | 958 | fs/ext2/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 974 | fs/ext2/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 976 | fs/ext2/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
i_mode | 989 | fs/ext2/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 993 | fs/ext2/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 995 | fs/ext2/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
i_mode | 66 | fs/ext2/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 101 | fs/ext2/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 333 | fs/ext2/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 334 | fs/ext2/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 97 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
i_mode | 625 | fs/hpfs/hpfs_fs.c | inode->i_mode = 0; |
i_mode | 639 | fs/hpfs/hpfs_fs.c | inode->i_mode = s->s_hpfs_mode; |
i_mode | 654 | fs/hpfs/hpfs_fs.c | inode->i_mode |= S_IFDIR; |
i_mode | 656 | fs/hpfs/hpfs_fs.c | inode->i_mode |= S_IFREG; |
i_mode | 657 | fs/hpfs/hpfs_fs.c | inode->i_mode &= ~0111; |
i_mode | 675 | fs/hpfs/hpfs_fs.c | if (S_ISREG(inode->i_mode)) { |
i_mode | 690 | fs/hpfs/hpfs_fs.c | inode->i_mode = 0; |
i_mode | 871 | fs/hpfs/hpfs_fs.c | if (inode == 0 || !S_ISREG(inode->i_mode)) |
i_mode | 1114 | fs/hpfs/hpfs_fs.c | if (!S_ISDIR(dir->i_mode)) |
i_mode | 1164 | fs/hpfs/hpfs_fs.c | inode->i_mode &= ~0222; |
i_mode | 1339 | fs/hpfs/hpfs_fs.c | || !S_ISDIR(inode->i_mode)) |
i_mode | 206 | fs/inode.c | if (S_ISREG(file->f_inode->i_mode) && (file->f_mode & 2)) |
i_mode | 312 | fs/inode.c | inode->i_ino, inode->i_mode); |
i_mode | 415 | fs/inode.c | inode->i_mode |= S_IFIFO | S_IRUSR | S_IWUSR; |
i_mode | 91 | fs/ioctl.c | if (filp->f_inode && S_ISREG(filp->f_inode->i_mode)) |
i_mode | 81 | fs/isofs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 128 | fs/isofs/file.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { |
i_mode | 129 | fs/isofs/file.c | printk("isofs_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 374 | fs/isofs/inode.c | inode->i_mode = S_IRUGO; /* Everybody gets to read the file. */ |
i_mode | 378 | fs/isofs/inode.c | inode->i_mode = S_IRUGO | S_IXUGO | S_IFDIR; |
i_mode | 382 | fs/isofs/inode.c | inode->i_mode = S_IRUGO; /* Everybody gets to read the file. */ |
i_mode | 384 | fs/isofs/inode.c | inode->i_mode |= S_IFREG; |
i_mode | 390 | fs/isofs/inode.c | inode->i_mode |= S_IXUGO; /* execute permission */ |
i_mode | 484 | fs/isofs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 486 | fs/isofs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 488 | fs/isofs/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 490 | fs/isofs/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 492 | fs/isofs/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 494 | fs/isofs/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 510 | fs/isofs/inode.c | inode->i_mode = S_IFREG; /*Regular file, noone gets to read*/ |
i_mode | 223 | fs/isofs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 289 | fs/isofs/rock.c | inode->i_mode = isonum_733(rr->u.PX.mode); |
i_mode | 357 | fs/isofs/rock.c | inode->i_mode = reloc->i_mode; |
i_mode | 60 | fs/isofs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 86 | fs/isofs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 203 | fs/locks.c | if (!S_ISREG(filp->f_inode->i_mode)) |
i_mode | 217 | fs/minix/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
i_mode | 66 | 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_read: mode = %07o\n",inode->i_mode); |
i_mode | 200 | fs/minix/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 201 | fs/minix/file.c | printk("minix_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 147 | fs/minix/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 148 | fs/minix/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 405 | fs/minix/inode.c | inode->i_mode = 0; |
i_mode | 421 | fs/minix/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 428 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 433 | fs/minix/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 435 | fs/minix/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 437 | fs/minix/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 439 | fs/minix/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 441 | fs/minix/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 443 | fs/minix/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 469 | fs/minix/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 475 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 121 | fs/minix/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 230 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 269 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 271 | fs/minix/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 273 | fs/minix/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 275 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 276 | fs/minix/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 278 | fs/minix/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 280 | fs/minix/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 282 | fs/minix/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 284 | fs/minix/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 352 | fs/minix/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 353 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 354 | fs/minix/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 446 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 453 | fs/minix/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 502 | fs/minix/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 511 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 551 | fs/minix/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 600 | fs/minix/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 701 | fs/minix/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 717 | fs/minix/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 719 | fs/minix/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
i_mode | 732 | fs/minix/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 736 | fs/minix/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 738 | fs/minix/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
i_mode | 56 | fs/minix/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 85 | fs/minix/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 170 | fs/minix/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 171 | fs/minix/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 65 | fs/msdos/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) return -EBADF; |
i_mode | 244 | fs/msdos/fat.c | if (inode->i_ino == MSDOS_ROOT_INO || (S_ISDIR(inode->i_mode) && |
i_mode | 94 | fs/msdos/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 95 | fs/msdos/file.c | printk("msdos_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 148 | fs/msdos/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 149 | fs/msdos/file.c | printk("msdos_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 318 | fs/msdos/inode.c | inode->i_mode = (S_IRWXUGO & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
i_mode | 342 | fs/msdos/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,S_IRWXUGO & |
i_mode | 367 | fs/msdos/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,(IS_NOEXEC(inode) |
i_mode | 404 | fs/msdos/inode.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 412 | fs/msdos/inode.c | raw_entry->attr |= MSDOS_MKATTR(inode->i_mode) | |
i_mode | 436 | fs/msdos/inode.c | if (inode->i_mode & ~MSDOS_VALID_MODE) { |
i_mode | 437 | fs/msdos/inode.c | inode->i_mode &= MSDOS_VALID_MODE; |
i_mode | 440 | fs/msdos/inode.c | if (IS_NOEXEC(inode) && !S_ISDIR(inode->i_mode)) |
i_mode | 441 | fs/msdos/inode.c | inode->i_mode &= S_IFMT | S_IRUGO | S_IWUGO; |
i_mode | 442 | fs/msdos/inode.c | else inode->i_mode |= S_IXUGO; |
i_mode | 443 | fs/msdos/inode.c | inode->i_mode = ((inode->i_mode & S_IFMT) | ((((inode->i_mode & S_IRWXU |
i_mode | 193 | fs/msdos/misc.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 460 | fs/msdos/misc.c | if (!S_ISDIR(dir->i_mode)) panic("Non-directory fed to m_p_i"); |
i_mode | 115 | fs/msdos/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 342 | fs/msdos/namei.c | if (!S_ISDIR(inode->i_mode)) goto rmdir_done; |
i_mode | 378 | fs/msdos/namei.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 416 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
i_mode | 424 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
i_mode | 493 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
i_mode | 520 | fs/msdos/namei.c | if (exists && S_ISDIR(new_inode->i_mode)) { |
i_mode | 539 | fs/msdos/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 76 | fs/namei.c | int mode = inode->i_mode; |
i_mode | 332 | fs/namei.c | if (S_ISDIR(inode->i_mode) && (flag & 2)) { |
i_mode | 340 | fs/namei.c | if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { |
i_mode | 98 | fs/nfs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) { |
i_mode | 296 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 337 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 371 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 402 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 426 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 446 | 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 | 501 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 526 | fs/nfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
i_mode | 532 | fs/nfs/dir.c | if (!new_dir || !S_ISDIR(new_dir->i_mode)) { |
i_mode | 573 | fs/nfs/dir.c | was_empty = inode->i_mode == 0; |
i_mode | 574 | fs/nfs/dir.c | inode->i_mode = fattr->mode; |
i_mode | 580 | fs/nfs/dir.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 589 | fs/nfs/dir.c | if (S_ISREG(inode->i_mode)) |
i_mode | 591 | fs/nfs/dir.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 593 | fs/nfs/dir.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 595 | fs/nfs/dir.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 597 | fs/nfs/dir.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 599 | fs/nfs/dir.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 77 | fs/nfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 79 | fs/nfs/file.c | inode->i_mode); |
i_mode | 128 | fs/nfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 130 | fs/nfs/file.c | inode->i_mode); |
i_mode | 85 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
i_mode | 203 | fs/nfs/inode.c | sattr.mode = inode->i_mode; |
i_mode | 213 | fs/nfs/inode.c | sattr.size = S_ISREG(inode->i_mode) ? inode->i_size : -1; |
i_mode | 60 | fs/nfs/mmap.c | if (!inode->i_sb || !S_ISREG(inode->i_mode)) |
i_mode | 58 | fs/nfs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 91 | fs/nfs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 76 | fs/open.c | if (S_ISDIR(inode->i_mode) || !permission(inode,MAY_WRITE)) { |
i_mode | 103 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
i_mode | 161 | fs/open.c | int res, i_mode; |
i_mode | 168 | fs/open.c | i_mode = inode->i_mode; |
i_mode | 169 | fs/open.c | res = i_mode & S_IRWXUGO; |
i_mode | 187 | fs/open.c | (S_ISDIR(i_mode) || !(mode & S_IXOTH) || (i_mode & S_IXUGO))) |
i_mode | 200 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 222 | fs/open.c | if (!S_ISDIR(inode->i_mode)) |
i_mode | 240 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 267 | fs/open.c | mode = inode->i_mode; |
i_mode | 268 | fs/open.c | inode->i_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); |
i_mode | 270 | fs/open.c | inode->i_mode &= ~S_ISGID; |
i_mode | 293 | fs/open.c | mode = inode->i_mode; |
i_mode | 294 | fs/open.c | inode->i_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); |
i_mode | 296 | fs/open.c | inode->i_mode &= ~S_ISGID; |
i_mode | 451 | fs/open.c | if (inode && S_ISREG(inode->i_mode)) |
i_mode | 100 | fs/proc/base.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 139 | fs/proc/base.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 69 | fs/proc/fd.c | if (!pid || ino > 1 || !S_ISDIR(dir->i_mode)) { |
i_mode | 133 | fs/proc/fd.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 81 | fs/proc/inode.c | inode->i_mode = 0; |
i_mode | 98 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; |
i_mode | 107 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO; |
i_mode | 114 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO; |
i_mode | 118 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; |
i_mode | 123 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUSR; |
i_mode | 128 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO; |
i_mode | 140 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; |
i_mode | 145 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR; |
i_mode | 152 | fs/proc/inode.c | inode->i_mode = S_IFLNK | S_IRWXU; |
i_mode | 156 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUSR | S_IXUSR; |
i_mode | 165 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO; |
i_mode | 176 | fs/proc/inode.c | inode->i_mode = S_IFLNK | S_IRWXU; |
i_mode | 191 | fs/proc/inode.c | inode->i_mode = S_IFLNK | S_IRWXU; |
i_mode | 114 | fs/proc/link.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 119 | fs/proc/net.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 146 | fs/proc/net.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 84 | fs/proc/root.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 139 | fs/proc/root.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 73 | fs/select.c | if (S_ISREG(inode->i_mode)) |
i_mode | 22 | fs/stat.c | tmp.st_mode = inode->i_mode; |
i_mode | 41 | fs/stat.c | tmp.st_mode = inode->i_mode; |
i_mode | 265 | fs/super.c | if (S_ISBLK(inode->i_mode)) { |
i_mode | 323 | fs/super.c | if (!S_ISDIR(dir_i->i_mode)) { |
i_mode | 464 | fs/super.c | if (!S_ISBLK(inode->i_mode)) { |
i_mode | 74 | fs/sysv/dir.c | if (!inode || !(sb = inode->i_sb) || !S_ISDIR(inode->i_mode)) |
i_mode | 125 | fs/sysv/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 126 | fs/sysv/file.c | printk("sysv_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 255 | fs/sysv/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 256 | fs/sysv/file.c | printk("sysv_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 188 | fs/sysv/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 189 | fs/sysv/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 119 | fs/sysv/ialloc.c | if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) |
i_mode | 139 | fs/sysv/ialloc.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
i_mode | 148 | fs/sysv/ialloc.c | inode->i_mode = 0; /* for sysv_write_inode() */ |
i_mode | 186 | fs/sysv/ialloc.c | if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) |
i_mode | 651 | fs/sysv/inode.c | inode->i_mode = 0; |
i_mode | 664 | fs/sysv/inode.c | mode = raw_inode->i_mode; |
i_mode | 668 | fs/sysv/inode.c | inode->i_mode = mode; |
i_mode | 684 | fs/sysv/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 696 | fs/sysv/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 701 | fs/sysv/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 703 | fs/sysv/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 705 | fs/sysv/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 707 | fs/sysv/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 709 | fs/sysv/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 718 | fs/sysv/inode.c | if (inode->i_mode == COH_KLUDGE_SYMLINK_MODE) { |
i_mode | 719 | fs/sysv/inode.c | inode->i_mode = COH_KLUDGE_NOT_SYMLINK; |
i_mode | 748 | fs/sysv/inode.c | mode = inode->i_mode; |
i_mode | 751 | fs/sysv/inode.c | raw_inode->i_mode = mode; |
i_mode | 766 | fs/sysv/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 119 | fs/sysv/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 230 | fs/sysv/namei.c | inode->i_mode = mode; |
i_mode | 269 | fs/sysv/namei.c | inode->i_mode = mode; |
i_mode | 271 | fs/sysv/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 276 | fs/sysv/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 278 | fs/sysv/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 279 | fs/sysv/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 281 | fs/sysv/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 283 | fs/sysv/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 285 | fs/sysv/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 287 | fs/sysv/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 354 | fs/sysv/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 355 | fs/sysv/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 356 | fs/sysv/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 450 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 457 | fs/sysv/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 506 | fs/sysv/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 515 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 558 | fs/sysv/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 608 | fs/sysv/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 709 | fs/sysv/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 725 | fs/sysv/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 727 | fs/sysv/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
i_mode | 740 | fs/sysv/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 744 | fs/sysv/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 746 | fs/sysv/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
i_mode | 63 | fs/sysv/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 93 | fs/sysv/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 487 | fs/sysv/truncate.c | if (S_ISLNK(inode->i_mode)) |
i_mode | 489 | fs/sysv/truncate.c | else if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) |
i_mode | 333 | fs/xiafs/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
i_mode | 72 | fs/xiafs/dir.c | if (!inode || !inode->i_sb || !S_ISDIR(inode->i_mode)) |
i_mode | 83 | fs/xiafs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 201 | 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 | 371 | fs/xiafs/inode.c | inode->i_mode=0; |
i_mode | 385 | fs/xiafs/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 394 | fs/xiafs/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { |
i_mode | 405 | fs/xiafs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 407 | fs/xiafs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 409 | fs/xiafs/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 411 | fs/xiafs/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 413 | fs/xiafs/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 415 | fs/xiafs/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 448 | fs/xiafs/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 456 | fs/xiafs/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 125 | fs/xiafs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 260 | fs/xiafs/namei.c | inode->i_mode = mode; |
i_mode | 298 | fs/xiafs/namei.c | inode->i_mode = mode; |
i_mode | 300 | fs/xiafs/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 302 | fs/xiafs/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 304 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 305 | fs/xiafs/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 307 | fs/xiafs/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 309 | fs/xiafs/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 311 | fs/xiafs/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 313 | fs/xiafs/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 380 | fs/xiafs/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->umask); |
i_mode | 381 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 382 | fs/xiafs/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 499 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 506 | fs/xiafs/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 551 | fs/xiafs/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 560 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 601 | fs/xiafs/namei.c | inode->i_mode = S_IFLNK | S_IRWXUGO; |
i_mode | 640 | fs/xiafs/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 731 | fs/xiafs/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 747 | fs/xiafs/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 752 | fs/xiafs/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 756 | fs/xiafs/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 53 | fs/xiafs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 90 | 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 | 215 | include/linux/ext2_fs.h | unsigned short i_mode; /* File mode */ |
i_mode | 16 | include/linux/ext_fs.h | unsigned short i_mode; |
i_mode | 168 | include/linux/fs.h | umode_t i_mode; |
i_mode | 31 | include/linux/minix_fs.h | unsigned short i_mode; |
i_mode | 47 | include/linux/minix_fs.h | unsigned short 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 | 322 | mm/mmap.c | if (!inode->i_sb || !S_ISREG(inode->i_mode)) |
i_mode | 735 | mm/swap.c | if (!S_ISBLK(inode->i_mode)) |
i_mode | 800 | mm/swap.c | if (S_ISBLK(swap_inode->i_mode)) { |
i_mode | 813 | mm/swap.c | } else if (S_ISREG(swap_inode->i_mode)) |
i_mode | 204 | net/socket.c | SOCK_INODE(sock)->i_mode = S_IFSOCK; |