tag | line | file | source code |
i_mode | 88 | fs/exec.c | if (!S_ISREG(inode->i_mode)) |
i_mode | 197 | fs/exec.c | if (!inode->i_sb || !S_ISREG(inode->i_mode) || !permission(inode,MAY_READ)) { |
i_mode | 449 | fs/exec.c | if (!S_ISREG(inode->i_mode)) { /* must be regular file */ |
i_mode | 461 | fs/exec.c | i = inode->i_mode; |
i_mode | 481 | fs/exec.c | !((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 | 204 | fs/ext/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 205 | 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->egid; |
i_mode | 359 | fs/ext/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 366 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 372 | fs/ext/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 374 | fs/ext/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 376 | fs/ext/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 378 | fs/ext/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 380 | fs/ext/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 382 | fs/ext/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 397 | fs/ext/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 403 | 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 | 322 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 360 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 362 | fs/ext/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 364 | fs/ext/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 366 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 367 | fs/ext/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 369 | fs/ext/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 371 | fs/ext/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 373 | fs/ext/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 375 | fs/ext/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 442 | fs/ext/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 443 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 444 | fs/ext/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 538 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 545 | fs/ext/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 591 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 595 | fs/ext/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 631 | fs/ext/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 679 | fs/ext/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 783 | fs/ext/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 799 | fs/ext/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 804 | fs/ext/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 808 | 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 | 228 | fs/ext/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 229 | fs/ext/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 23 | fs/ext2/acl.c | int mode = inode->i_mode; |
i_mode | 101 | fs/ext2/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 89 | fs/ext2/file.c | if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) { |
i_mode | 90 | fs/ext2/file.c | printk ("ext2_file_read: mode = %07o\n", inode->i_mode); |
i_mode | 213 | fs/ext2/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 214 | fs/ext2/file.c | printk ("ext2_file_write: mode = %07o\n", inode->i_mode); |
i_mode | 251 | fs/ext2/ialloc.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 444 | fs/ext2/ialloc.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
i_mode | 673 | fs/ext2/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 694 | fs/ext2/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 702 | fs/ext2/inode.c | else if (S_ISREG(inode->i_mode)) |
i_mode | 704 | fs/ext2/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 706 | fs/ext2/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 708 | fs/ext2/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 710 | fs/ext2/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 712 | fs/ext2/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 748 | fs/ext2/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 765 | fs/ext2/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 139 | fs/ext2/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 304 | fs/ext2/namei.c | inode->i_mode = mode; |
i_mode | 348 | fs/ext2/namei.c | inode->i_mode = mode; |
i_mode | 350 | fs/ext2/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 352 | fs/ext2/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 354 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 355 | fs/ext2/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 357 | fs/ext2/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 359 | fs/ext2/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 361 | fs/ext2/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 363 | fs/ext2/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 438 | fs/ext2/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 439 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 440 | fs/ext2/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 534 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 541 | fs/ext2/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 590 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 594 | fs/ext2/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 634 | fs/ext2/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 704 | fs/ext2/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 814 | fs/ext2/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 830 | fs/ext2/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 832 | fs/ext2/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
i_mode | 845 | fs/ext2/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 849 | fs/ext2/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 851 | fs/ext2/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
i_mode | 64 | fs/ext2/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 99 | fs/ext2/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 256 | fs/ext2/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 257 | fs/ext2/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 98 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
i_mode | 198 | fs/inode.c | inode->i_ino, inode->i_mode); |
i_mode | 283 | fs/inode.c | inode->i_mode |= S_IFIFO; |
i_mode | 91 | fs/ioctl.c | if (filp->f_inode && S_ISREG(filp->f_inode->i_mode)) |
i_mode | 76 | fs/isofs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 127 | fs/isofs/file.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { |
i_mode | 128 | fs/isofs/file.c | printk("isofs_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 296 | fs/isofs/inode.c | inode->i_mode = 0444; /* Everybody gets to read the file. */ |
i_mode | 300 | fs/isofs/inode.c | inode->i_mode = 0555 | S_IFDIR; |
i_mode | 304 | fs/isofs/inode.c | inode->i_mode = 0444; /* Everybody gets to read the file. */ |
i_mode | 306 | fs/isofs/inode.c | inode->i_mode |= S_IFREG; |
i_mode | 312 | fs/isofs/inode.c | inode->i_mode |= 0111; /* execute permission */ |
i_mode | 411 | fs/isofs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 413 | fs/isofs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 415 | fs/isofs/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 417 | fs/isofs/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 419 | fs/isofs/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 421 | fs/isofs/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 206 | fs/isofs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 277 | fs/isofs/rock.c | inode->i_mode = isonum_733(rr->u.PX.mode); |
i_mode | 335 | fs/isofs/rock.c | inode->i_mode = reloc->i_mode; |
i_mode | 59 | fs/isofs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 85 | fs/isofs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 202 | fs/locks.c | if (!S_ISREG(filp->f_inode->i_mode)) |
i_mode | 214 | 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 | 198 | fs/minix/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 199 | fs/minix/file.c | printk("minix_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 323 | fs/minix/inode.c | inode->i_mode = 0; |
i_mode | 339 | fs/minix/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 346 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 351 | fs/minix/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 353 | fs/minix/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 355 | fs/minix/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 357 | fs/minix/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 359 | fs/minix/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 361 | fs/minix/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 387 | fs/minix/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 393 | 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 | 231 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 270 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 272 | fs/minix/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 274 | fs/minix/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 276 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 277 | fs/minix/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 279 | fs/minix/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 281 | fs/minix/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 283 | fs/minix/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 285 | fs/minix/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 355 | fs/minix/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 356 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 357 | fs/minix/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 449 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 456 | fs/minix/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 508 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 512 | fs/minix/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 546 | fs/minix/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 595 | fs/minix/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 696 | fs/minix/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 712 | fs/minix/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 714 | fs/minix/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
i_mode | 727 | fs/minix/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 731 | fs/minix/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 733 | 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 | 171 | fs/minix/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 172 | 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 | 142 | fs/msdos/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 143 | fs/msdos/file.c | printk("msdos_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 316 | fs/msdos/inode.c | inode->i_mode = (0777 & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
i_mode | 340 | fs/msdos/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,0777 & |
i_mode | 363 | fs/msdos/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,(IS_NOEXEC(inode) |
i_mode | 400 | fs/msdos/inode.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 408 | fs/msdos/inode.c | raw_entry->attr |= MSDOS_MKATTR(inode->i_mode) | |
i_mode | 432 | fs/msdos/inode.c | if (inode->i_mode & ~MSDOS_VALID_MODE) { |
i_mode | 433 | fs/msdos/inode.c | inode->i_mode &= MSDOS_VALID_MODE; |
i_mode | 436 | fs/msdos/inode.c | if (IS_NOEXEC(inode) && !S_ISDIR(inode->i_mode)) |
i_mode | 437 | fs/msdos/inode.c | inode->i_mode &= S_IFMT | 0666; |
i_mode | 438 | fs/msdos/inode.c | else inode->i_mode |= 0111; |
i_mode | 439 | 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 | 337 | fs/msdos/namei.c | if (!S_ISDIR(inode->i_mode)) goto rmdir_done; |
i_mode | 373 | fs/msdos/namei.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 410 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
i_mode | 418 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
i_mode | 487 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
i_mode | 514 | fs/msdos/namei.c | if (exists && S_ISDIR(new_inode->i_mode)) { |
i_mode | 533 | fs/msdos/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 77 | fs/namei.c | int mode = inode->i_mode; |
i_mode | 344 | fs/namei.c | if (S_ISDIR(inode->i_mode) && (flag & 2)) { |
i_mode | 352 | fs/namei.c | if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { |
i_mode | 97 | fs/nfs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) { |
i_mode | 295 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 336 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 370 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 401 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 425 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 445 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 467 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 500 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 525 | fs/nfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
i_mode | 531 | fs/nfs/dir.c | if (!new_dir || !S_ISDIR(new_dir->i_mode)) { |
i_mode | 572 | fs/nfs/dir.c | was_empty = inode->i_mode == 0; |
i_mode | 573 | fs/nfs/dir.c | inode->i_mode = fattr->mode; |
i_mode | 579 | fs/nfs/dir.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 588 | fs/nfs/dir.c | if (S_ISREG(inode->i_mode)) |
i_mode | 590 | fs/nfs/dir.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 592 | fs/nfs/dir.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 594 | fs/nfs/dir.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 596 | fs/nfs/dir.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 598 | fs/nfs/dir.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 68 | fs/nfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 70 | fs/nfs/file.c | inode->i_mode); |
i_mode | 119 | fs/nfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 121 | fs/nfs/file.c | inode->i_mode); |
i_mode | 83 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
i_mode | 200 | fs/nfs/inode.c | sattr.mode = inode->i_mode; |
i_mode | 210 | fs/nfs/inode.c | sattr.size = S_ISREG(inode->i_mode) ? inode->i_size : -1; |
i_mode | 57 | fs/nfs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 90 | 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 & 0777; |
i_mode | 187 | fs/open.c | (S_ISDIR(i_mode) || !(mode & 1) || (i_mode & 0111))) |
i_mode | 200 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 221 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 247 | fs/open.c | inode->i_mode = (mode & 07777) | (inode->i_mode & ~07777); |
i_mode | 249 | fs/open.c | inode->i_mode &= ~S_ISGID; |
i_mode | 271 | fs/open.c | inode->i_mode = (mode & 07777) | (inode->i_mode & ~07777); |
i_mode | 273 | fs/open.c | inode->i_mode &= ~S_ISGID; |
i_mode | 431 | fs/open.c | if (inode && S_ISREG(inode->i_mode)) |
i_mode | 99 | fs/proc/base.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 138 | 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 | 128 | fs/proc/fd.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 79 | fs/proc/inode.c | inode->i_mode = 0; |
i_mode | 95 | fs/proc/inode.c | inode->i_mode = S_IFDIR | 0555; |
i_mode | 104 | fs/proc/inode.c | inode->i_mode = S_IFREG | 0444; |
i_mode | 107 | fs/proc/inode.c | inode->i_mode = S_IFREG | 0400; |
i_mode | 118 | fs/proc/inode.c | inode->i_mode = S_IFDIR | 0555; |
i_mode | 123 | fs/proc/inode.c | inode->i_mode = S_IFREG | 0600; |
i_mode | 130 | fs/proc/inode.c | inode->i_mode = S_IFLNK | 0700; |
i_mode | 134 | fs/proc/inode.c | inode->i_mode = S_IFDIR | 0500; |
i_mode | 142 | fs/proc/inode.c | inode->i_mode = S_IFREG | 0444; |
i_mode | 153 | fs/proc/inode.c | inode->i_mode = S_IFLNK | 0700; |
i_mode | 161 | fs/proc/inode.c | inode->i_mode = S_IFLNK | 0700; |
i_mode | 75 | fs/proc/root.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 130 | 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 | 246 | fs/super.c | if (S_ISBLK(inode->i_mode)) { |
i_mode | 252 | fs/super.c | } else if (S_ISDIR(inode->i_mode)) { |
i_mode | 307 | fs/super.c | if (!S_ISDIR(dir_i->i_mode)) { |
i_mode | 398 | fs/super.c | if (!S_ISBLK(inode->i_mode)) { |
i_mode | 328 | 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 | 197 | fs/xiafs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 357 | fs/xiafs/inode.c | inode->i_mode=0; |
i_mode | 371 | fs/xiafs/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 380 | fs/xiafs/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { |
i_mode | 391 | fs/xiafs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 393 | fs/xiafs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 395 | fs/xiafs/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 397 | fs/xiafs/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 399 | fs/xiafs/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 401 | fs/xiafs/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 434 | fs/xiafs/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 442 | 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 | 256 | fs/xiafs/namei.c | inode->i_mode = mode; |
i_mode | 294 | fs/xiafs/namei.c | inode->i_mode = mode; |
i_mode | 296 | fs/xiafs/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 298 | fs/xiafs/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 300 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 301 | fs/xiafs/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 303 | fs/xiafs/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 305 | fs/xiafs/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 307 | fs/xiafs/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 309 | fs/xiafs/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 376 | fs/xiafs/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 377 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 378 | fs/xiafs/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 495 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 502 | fs/xiafs/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 554 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 558 | fs/xiafs/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 597 | fs/xiafs/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 636 | fs/xiafs/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 727 | fs/xiafs/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 743 | fs/xiafs/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 748 | fs/xiafs/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 752 | 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 | 184 | fs/xiafs/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 185 | fs/xiafs/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 159 | 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 | 170 | include/linux/fs.h | umode_t i_mode; |
i_mode | 29 | include/linux/minix_fs.h | unsigned short i_mode; |
i_mode | 45 | include/linux/minix_fs.h | unsigned short i_mode; |
i_mode | 22 | include/linux/xia_fs.h | mode_t i_mode; |
i_mode | 551 | mm/swap.c | if (!S_ISBLK(inode->i_mode)) |
i_mode | 617 | mm/swap.c | if (S_ISBLK(swap_inode->i_mode)) { |
i_mode | 633 | mm/swap.c | } else if (S_ISREG(swap_inode->i_mode)) |
i_mode | 176 | net/socket.c | SOCK_INODE(sock)->i_mode = S_IFSOCK; |