/linux-2.4.37.9/fs/hpfs/ |
D | inode.c | 67 i->i_mode = sb->s_hpfs_mode; in hpfs_read_inode() 95 i->i_mode |= S_IFREG; in hpfs_read_inode() 96 i->i_mode &= ~0111; in hpfs_read_inode() 128 i->i_mode = S_IFLNK | 0777; in hpfs_read_inode() 145 i->i_mode = mode; in hpfs_read_inode() 165 i->i_mode |= S_IFDIR; in hpfs_read_inode() 180 i->i_mode |= S_IFREG; in hpfs_read_inode() 181 if (!i->i_hpfs_ea_mode) i->i_mode &= ~0111; in hpfs_read_inode() 213 if (!S_ISLNK(i->i_mode)) in hpfs_write_inode_ea() 214 if ((i->i_mode != ((i->i_sb->s_hpfs_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea() [all …]
|
/linux-2.4.37.9/fs/ncpfs/ |
D | inode.c | 84 inode->i_mode = server->m.dir_mode; in ncp_update_inode2() 87 inode->i_mode = server->m.file_mode; in ncp_update_inode2() 96 inode->i_mode = (inode->i_mode & ~S_IFMT) | S_IFLNK; in ncp_update_inode2() 103 inode->i_mode |= 0444; in ncp_update_inode2() 107 inode->i_mode |= (inode->i_mode >> 2) & 0111; in ncp_update_inode2() 117 if (nwi->attributes & aRONLY) inode->i_mode &= ~0222; in ncp_update_inode2() 141 inode->i_mode = server->m.dir_mode; in ncp_set_attr() 146 inode->i_mode = server->m.file_mode; in ncp_set_attr() 156 inode->i_mode = (inode->i_mode & ~S_IFMT) | S_IFLNK; in ncp_set_attr() 163 inode->i_mode |= 0444; in ncp_set_attr() [all …]
|
/linux-2.4.37.9/fs/hfs/ |
D | inode.c | 42 inode->i_mode = S_IRWXUGO | S_IFREG; in init_file_inode() 44 inode->i_mode = S_IRUGO | S_IWUGO | S_IFREG; in init_file_inode() 140 (attr->ia_mode != inode->i_mode))|| in __hfs_notify_change() 150 attr->ia_mode = inode->i_mode | S_IWUGO; in __hfs_notify_change() 152 attr->ia_mode = inode->i_mode & ~S_IWUGO; in __hfs_notify_change() 194 if (inode->i_mode & S_IWUSR) { in __hfs_notify_change() 317 } else if (!inode->i_mode || (*sys_entry == NULL)) { in hfs_iget() 336 inode->i_mode &= ~S_IWUGO; in hfs_iget() 338 inode->i_mode &= ~hsb->s_umask; in hfs_iget() 340 if (!inode->i_mode) { in hfs_iget() [all …]
|
D | file.c | 148 if (!S_ISREG(inode->i_mode)) { in hfs_file_read() 149 hfs_warn("hfs_file_read: mode = %07o\n",inode->i_mode); in hfs_file_read() 193 if (!S_ISREG(inode->i_mode)) { in hfs_file_write() 194 hfs_warn("hfs_file_write: mode = %07o\n", inode->i_mode); in hfs_file_write() 521 de[i]->d_inode->i_mode &= ~S_IWUGO; in hfs_file_fix_mode() 528 inode->i_mode |= S_IWUGO; in hfs_file_fix_mode() 529 inode->i_mode &= in hfs_file_fix_mode()
|
/linux-2.4.37.9/fs/sysv/ |
D | inode.c | 124 if (S_ISREG(inode->i_mode)) { in sysv_set_inode() 128 } else if (S_ISDIR(inode->i_mode)) { in sysv_set_inode() 132 } else if (S_ISLNK(inode->i_mode)) { in sysv_set_inode() 139 init_special_inode(inode, inode->i_mode, rdev); in sysv_set_inode() 164 inode->i_mode = fs16_to_cpu(sb, raw_inode->i_mode); in sysv_read_inode() 177 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in sysv_read_inode() 207 raw_inode->i_mode = cpu_to_fs16(sb, inode->i_mode); in sysv_update_inode() 215 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in sysv_update_inode()
|
D | ialloc.c | 76 if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) { in refill_free_cache() 157 if (dir->i_mode & S_ISGID) { in sysv_new_inode() 172 inode->i_mode = mode; /* for sysv_write_inode() */ in sysv_new_inode() 200 if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) in sysv_count_free_inodes()
|
/linux-2.4.37.9/fs/qnx4/ |
D | truncate.c | 26 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in qnx4_truncate() 27 S_ISLNK(inode->i_mode))) { in qnx4_truncate() 30 if (!(S_ISDIR(inode->i_mode))) { in qnx4_truncate()
|
D | fsync.c | 158 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in qnx4_sync_file() 159 S_ISLNK(inode->i_mode))) in qnx4_sync_file()
|
/linux-2.4.37.9/fs/minix/ |
D | inode.c | 331 if (S_ISREG(inode->i_mode)) { in minix_set_inode() 335 } else if (S_ISDIR(inode->i_mode)) { in minix_set_inode() 339 } else if (S_ISLNK(inode->i_mode)) { in minix_set_inode() 343 init_special_inode(inode, inode->i_mode, rdev); in minix_set_inode() 360 inode->i_mode = raw_inode->i_mode; in V1_minix_read_inode() 387 inode->i_mode = raw_inode->i_mode; in V2_minix_read_inode() 425 raw_inode->i_mode = inode->i_mode; in V1_minix_update_inode() 431 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in V1_minix_update_inode() 451 raw_inode->i_mode = inode->i_mode; in V2_minix_update_inode() 459 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in V2_minix_update_inode() [all …]
|
D | namei.c | 86 inode->i_mode = mode; in minix_mknod() 113 inode->i_mode = S_IFLNK | 0777; in minix_symlink() 134 if (S_ISDIR(inode->i_mode)) in minix_link() 160 inode->i_mode = S_IFDIR | mode; in minix_mkdir() 161 if (dir->i_mode & S_ISGID) in minix_mkdir() 162 inode->i_mode |= S_ISGID; in minix_mkdir() 240 if (S_ISDIR(old_inode->i_mode)) { in minix_rename()
|
/linux-2.4.37.9/fs/affs/ |
D | inode.c | 70 inode->i_mode = 0; in affs_read_inode() 79 inode->i_mode = AFFS_SB->s_mode; in affs_read_inode() 81 inode->i_mode = prot_to_mode(prot); in affs_read_inode() 107 if (inode->i_mode & S_IRUSR) in affs_read_inode() 108 inode->i_mode |= S_IXUSR; in affs_read_inode() 109 if (inode->i_mode & S_IRGRP) in affs_read_inode() 110 inode->i_mode |= S_IXGRP; in affs_read_inode() 111 if (inode->i_mode & S_IROTH) in affs_read_inode() 112 inode->i_mode |= S_IXOTH; in affs_read_inode() 113 inode->i_mode |= S_IFDIR; in affs_read_inode() [all …]
|
/linux-2.4.37.9/fs/hfsplus/ |
D | inode.c | 210 inode->i_mode = mode; in hfsplus_get_perms() 215 perms->mode = cpu_to_be32(inode->i_mode); in hfsplus_set_perms() 281 inode->i_mode = mode; in hfsplus_new_inode() 286 if (S_ISDIR(inode->i_mode)) { in hfsplus_new_inode() 292 } else if (S_ISREG(inode->i_mode)) { in hfsplus_new_inode() 297 } else if (S_ISLNK(inode->i_mode)) { in hfsplus_new_inode() 314 if (S_ISDIR(inode->i_mode)) { in hfsplus_delete_inode() 320 if (S_ISREG(inode->i_mode)) { in hfsplus_delete_inode() 325 } else if (S_ISLNK(inode->i_mode)) { in hfsplus_delete_inode() 397 if (S_ISREG(inode->i_mode)) { in hfsplus_cat_read_inode() [all …]
|
/linux-2.4.37.9/fs/jffs2/ |
D | readinode.c | 337 inode->i_mode = S_IFDIR | S_IRUGO | S_IWUSR | S_IXUGO; in jffs2_read_inode() 362 inode->i_mode = latest_node.mode; in jffs2_read_inode() 366 if (S_ISREG(inode->i_mode)) in jffs2_read_inode() 376 if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode) || in jffs2_read_inode() 377 S_ISLNK(inode->i_mode)) { in jffs2_read_inode() 379 …WARNING "Argh. Special inode #%lu with mode 0%o had metadata node\n", inode->i_ino, inode->i_mode); in jffs2_read_inode() 385 …_WARNING "Argh. Special inode #%lu with mode 0%o has no fragments\n", inode->i_ino, inode->i_mode); in jffs2_read_inode() 392 …NG "Argh. Special inode #%lu with mode 0%o had more than one node\n", inode->i_ino, inode->i_mode); in jffs2_read_inode() 407 switch (inode->i_mode & S_IFMT) { in jffs2_read_inode() 453 init_special_inode(inode, inode->i_mode, kdev_t_to_nr(MKDEV(rdev>>8, rdev&0xff))); in jffs2_read_inode() [all …]
|
D | file.c | 105 if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { in jffs2_setattr() 112 } else if (S_ISLNK(inode->i_mode)) { in jffs2_setattr() 127 if (S_ISLNK(inode->i_mode)) in jffs2_setattr() 135 if (S_ISLNK(inode->i_mode)) in jffs2_setattr() 150 ri->mode = (ivalid & ATTR_MODE)?iattr->ia_mode:inode->i_mode; in jffs2_setattr() 179 if (S_ISLNK(inode->i_mode)) in jffs2_setattr() 193 inode->i_mode = ri->mode; in jffs2_setattr() 365 ri.mode = inode->i_mode; in jffs2_prepare_write() 483 ri->mode = inode->i_mode; in jffs2_commit_write()
|
/linux-2.4.37.9/fs/adfs/ |
D | inode.c | 156 if (S_ISLNK(inode->i_mode)) in adfs_mode2atts() 159 if (S_ISDIR(inode->i_mode)) in adfs_mode2atts() 164 mode = inode->i_mode & sb->u.adfs_sb.s_owner_mask; in adfs_mode2atts() 170 mode = inode->i_mode & sb->u.adfs_sb.s_other_mask; in adfs_mode2atts() 276 inode->i_mode = adfs_atts2mode(sb, inode); in adfs_iget() 281 if (S_ISDIR(inode->i_mode)) { in adfs_iget() 284 } else if (S_ISREG(inode->i_mode)) { in adfs_iget() 343 inode->i_mode = adfs_atts2mode(sb, inode); in adfs_notify_change()
|
/linux-2.4.37.9/fs/smbfs/ |
D | inode.c | 77 if (S_ISREG(result->i_mode)) { in smb_iget() 81 } else if (S_ISDIR(result->i_mode)) { in smb_iget() 88 } else if(S_ISLNK(result->i_mode)) { in smb_iget() 91 init_special_inode(result, result->i_mode, fattr->f_rdev); in smb_iget() 104 fattr->f_mode = inode->i_mode; in smb_get_inode_attr() 141 inode->i_mode = fattr->f_mode; in smb_set_inode_attr() 164 if (!S_ISDIR(inode->i_mode)) in smb_set_inode_attr() 203 if (S_ISLNK(inode->i_mode)) in smb_refresh_inode() 206 if ((inode->i_mode & S_IFMT) == (fattr.f_mode & S_IFMT)) { in smb_refresh_inode() 218 inode->i_mode, fattr.f_mode); in smb_refresh_inode() [all …]
|
/linux-2.4.37.9/fs/ext2/ |
D | inode.c | 46 return (S_ISLNK(inode->i_mode) && in ext2_inode_is_fast_symlink() 126 if (S_ISREG(inode->i_mode)) in ext2_alloc_block() 425 if (S_ISDIR(inode->i_mode) && IS_SYNC(inode)) { in ext2_alloc_branch() 489 if (S_ISDIR(inode->i_mode) && IS_SYNC(inode)) { in ext2_splice_branch() 813 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_truncate() 814 S_ISLNK(inode->i_mode))) in ext2_truncate() 960 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in ext2_read_inode() 978 if (inode->i_nlink == 0 && (inode->i_mode == 0 || inode->u.ext2_i.i_dtime)) { in ext2_read_inode() 991 if (S_ISREG(inode->i_mode)) in ext2_read_inode() 1010 else if (S_ISREG(inode->i_mode)) { in ext2_read_inode() [all …]
|
/linux-2.4.37.9/fs/ |
D | ioctl.c | 105 if (S_ISDIR(filp->f_dentry->d_inode->i_mode) || in sys_ioctl() 106 S_ISREG(filp->f_dentry->d_inode->i_mode) || in sys_ioctl() 107 S_ISLNK(filp->f_dentry->d_inode->i_mode)) { in sys_ioctl() 116 if (S_ISREG(filp->f_dentry->d_inode->i_mode)) in sys_ioctl()
|
D | open.c | 137 if (S_ISDIR(inode->i_mode)) in do_sys_truncate() 141 if (!S_ISREG(inode->i_mode)) in do_sys_truncate() 208 if (!S_ISREG(inode->i_mode) || !(file->f_mode & FMODE_WRITE)) in do_sys_ftruncate() 389 && !special_file(nd.dentry->d_inode->i_mode)) in sys_access() 440 if (!S_ISDIR(inode->i_mode)) in sys_fchdir() 501 mode = inode->i_mode; in sys_fchmod() 502 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); in sys_fchmod() 533 mode = inode->i_mode; in sys_chmod() 534 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); in sys_chmod() 565 newattrs.ia_mode = inode->i_mode; in chown_common() [all …]
|
/linux-2.4.37.9/fs/coda/ |
D | cnode.c | 51 if (S_ISREG(inode->i_mode)) { in coda_fill_inode() 54 } else if (S_ISDIR(inode->i_mode)) { in coda_fill_inode() 57 } else if (S_ISLNK(inode->i_mode)) { in coda_fill_inode() 62 init_special_inode(inode, inode->i_mode, attr->va_rdev); in coda_fill_inode() 198 (*inode)->i_mode = 0444; in coda_cnode_makectl()
|
/linux-2.4.37.9/fs/freevxfs/ |
D | vxfs_inode.c | 237 ip->i_mode = vxfs_transmod(vip); in vxfs_iinit() 317 if (S_ISREG(ip->i_mode)) { in vxfs_read_inode() 320 } else if (S_ISDIR(ip->i_mode)) { in vxfs_read_inode() 324 } else if (S_ISLNK(ip->i_mode)) { in vxfs_read_inode() 331 init_special_inode(ip, ip->i_mode, vip->vii_rdev); in vxfs_read_inode()
|
/linux-2.4.37.9/fs/jfs/ |
D | inode.c | 86 if (S_ISREG(inode->i_mode)) { in jfs_read_inode() 90 } else if (S_ISDIR(inode->i_mode)) { in jfs_read_inode() 93 } else if (S_ISLNK(inode->i_mode)) { in jfs_read_inode() 101 init_special_inode(inode, inode->i_mode, in jfs_read_inode() 138 if (!special_file(inode->i_mode) && noisy) { in jfs_commit_inode() 198 if (!special_file(inode->i_mode) && noisy) { in jfs_dirty_inode()
|
/linux-2.4.37.9/fs/umsdos/ |
D | inode.c | 71 if (!S_ISDIR(inode->i_mode)) in umsdos_setup_dir() 143 if (S_ISREG (inode->i_mode)) { in umsdos_patch_dentry_inode() 145 } else if (S_ISDIR (inode->i_mode)) { in umsdos_patch_dentry_inode() 147 } else if (S_ISLNK (inode->i_mode)) { in umsdos_patch_dentry_inode() 151 init_special_inode(inode, inode->i_mode, in umsdos_patch_dentry_inode() 428 if (!root->d_inode || !S_ISDIR(root->d_inode->i_mode)) in check_pseudo_root() 438 if (!sbin->d_inode || !S_ISDIR(sbin->d_inode->i_mode)) in check_pseudo_root()
|
/linux-2.4.37.9/fs/nfs/ |
D | inode.c | 106 inode->i_mode = 0; in nfs_read_inode() 619 umode_t save_mode = inode->i_mode; in nfs_invalidate_inode() 622 inode->i_mode = save_mode; in nfs_invalidate_inode() 636 if (inode->i_mode == 0) { in nfs_fill_inode() 638 inode->i_mode = fattr->mode; in nfs_fill_inode() 643 if (S_ISREG(inode->i_mode)) { in nfs_fill_inode() 646 } else if (S_ISDIR(inode->i_mode)) { in nfs_fill_inode() 649 } else if (S_ISLNK(inode->i_mode)) in nfs_fill_inode() 652 init_special_inode(inode, inode->i_mode, fattr->rdev); in nfs_fill_inode() 761 if (!S_ISREG(inode->i_mode)) in nfs_notify_change() [all …]
|
/linux-2.4.37.9/fs/udf/ |
D | inode.c | 860 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in udf_truncate() 861 S_ISLNK(inode->i_mode))) in udf_truncate() 1076 inode->i_mode = udf_convert_permissions(fe); in udf_fill_inode() 1077 inode->i_mode &= ~UDF_SB(inode->i_sb)->s_umask; in udf_fill_inode() 1191 inode->i_mode |= S_IFDIR; in udf_fill_inode() 1205 inode->i_mode |= S_IFREG; in udf_fill_inode() 1210 inode->i_mode |= S_IFBLK; in udf_fill_inode() 1215 inode->i_mode |= S_IFCHR; in udf_fill_inode() 1220 init_special_inode(inode, inode->i_mode | S_IFIFO, 0); in udf_fill_inode() 1227 inode->i_mode = S_IFLNK|S_IRWXUGO; in udf_fill_inode() [all …]
|