Home
last modified time | relevance | path

Searched refs:ia_mode (Results 1 – 25 of 46) sorted by relevance

12

/fs/
Dattr.c74 attr->ia_mode &= ~S_ISGID; in setattr_prepare()
173 umode_t mode = attr->ia_mode; in setattr_copy()
234 umode_t amode = attr->ia_mode; in notify_change2()
269 attr->ia_mode = (inode->i_mode & ~S_ISUID); in notify_change2()
276 attr->ia_mode = inode->i_mode; in notify_change2()
278 attr->ia_mode &= ~S_ISGID; in notify_change2()
/fs/configfs/
Dinode.c75 sd_iattr->ia_mode = sd->s_mode; in configfs_setattr()
102 umode_t mode = iattr->ia_mode; in configfs_setattr()
106 sd_iattr->ia_mode = sd->s_mode = mode; in configfs_setattr()
121 inode->i_mode = iattr->ia_mode; in set_inode_attr()
/fs/nfsd/
Dvfs.c331 iap->ia_mode &= S_IALLUGO; in nfsd_sanitize_attrs()
332 iap->ia_mode |= (inode->i_mode & ~S_IALLUGO); in nfsd_sanitize_attrs()
341 iap->ia_mode &= ~S_ISUID; in nfsd_sanitize_attrs()
342 if (iap->ia_mode & S_IXGRP) in nfsd_sanitize_attrs()
343 iap->ia_mode &= ~S_ISGID; in nfsd_sanitize_attrs()
1213 iap->ia_mode = 0; in nfsd_create_locked()
1214 iap->ia_mode = (iap->ia_mode & S_IALLUGO) | type; in nfsd_create_locked()
1220 host_err = vfs_create(dirp, dchild, iap->ia_mode, true); in nfsd_create_locked()
1225 host_err = vfs_mkdir(dirp, dchild, iap->ia_mode); in nfsd_create_locked()
1231 host_err = vfs_mknod(dirp, dchild, iap->ia_mode, rdev); in nfsd_create_locked()
[all …]
Dnfs3proc.c228 attr->ia_mode &= ~S_IFMT; in nfsd3_proc_create()
231 attr->ia_mode = S_IFREG; in nfsd3_proc_create()
233 attr->ia_mode = (attr->ia_mode & ~S_IFMT) | S_IFREG; in nfsd3_proc_create()
Dnfsproc.c291 type = attr->ia_mode & S_IFMT; in nfsd_proc_create()
292 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create()
331 attr->ia_mode = mode; in nfsd_proc_create()
/fs/hfs/
Dinode.c620 (attr->ia_mode != inode->i_mode)) || in hfs_inode_setattr()
621 (attr->ia_mode & ~HFS_VALID_MODE_BITS)))) { in hfs_inode_setattr()
627 if (attr->ia_mode & S_IWUSR) in hfs_inode_setattr()
628 attr->ia_mode = inode->i_mode | S_IWUGO; in hfs_inode_setattr()
630 attr->ia_mode = inode->i_mode & ~S_IWUGO; in hfs_inode_setattr()
631 attr->ia_mode &= S_ISDIR(inode->i_mode) ? ~hsb->s_dir_umask: ~hsb->s_file_umask; in hfs_inode_setattr()
/fs/fat/
Dfile.c68 ia.ia_mode = fat_make_mode(sbi, attr, S_IRWXUGO); in fat_ioctl_set_attributes()
70 ia.ia_mode = fat_make_mode(sbi, attr, in fat_ioctl_set_attributes()
483 (attr->ia_mode & ~FAT_VALID_MODE))) in fat_setattr()
497 if (fat_sanitize_mode(sbi, inode, &attr->ia_mode) < 0) in fat_setattr()
/fs/coda/
Dcoda_linux.c149 mode = iattr->ia_mode; in coda_iattr_to_vattr()
165 vattr->va_mode = iattr->ia_mode; in coda_iattr_to_vattr()
/fs/kernfs/
Dinode.c51 iattrs->ia_mode = kn->mode; in kernfs_iattrs()
89 umode_t mode = iattr->ia_mode; in __kernfs_setattr()
90 iattrs->ia_mode = kn->mode = mode; in __kernfs_setattr()
/fs/ceph/
Dacl.c134 newattrs.ia_mode = new_mode; in ceph_set_acl()
144 newattrs.ia_mode = old_mode; in ceph_set_acl()
Dinode.c1963 attr->ia_mode); in __ceph_setattr()
1965 inode->i_mode = attr->ia_mode; in __ceph_setattr()
1968 attr->ia_mode != inode->i_mode) { in __ceph_setattr()
1969 inode->i_mode = attr->ia_mode; in __ceph_setattr()
1970 req->r_args.setattr.mode = cpu_to_le32(attr->ia_mode); in __ceph_setattr()
2122 err = posix_acl_chmod(inode, attr->ia_mode); in ceph_setattr()
/fs/nfs/
Dproc.c134 sattr->ia_mode &= S_IALLUGO; in nfs_proc_setattr()
270 mode = sattr->ia_mode; in nfs_proc_mknod()
272 sattr->ia_mode = (mode & ~S_IFMT) | S_IFCHR; in nfs_proc_mknod()
289 sattr->ia_mode = mode; in nfs_proc_mknod()
Dnfs3proc.c345 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_create()
559 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_mkdir()
685 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_mknod()
696 switch (sattr->ia_mode & S_IFMT) { in nfs3_proc_mknod()
Ddir.c1533 attr.ia_mode = mode & ~current_umask(); in nfs_atomic_open()
1727 attr.ia_mode = mode; in nfs_create()
1754 attr.ia_mode = mode; in nfs_mknod()
1781 attr.ia_mode = mode | S_IFDIR; in nfs_mkdir()
1932 attr.ia_mode = S_IFLNK | S_IRWXUGO; in nfs_symlink()
/fs/ncpfs/
Dinode.c899 (attr->ia_mode & in ncp_notify_change()
909 umode_t newmode = attr->ia_mode; in ncp_notify_change()
938 attr->ia_mode, 0); in ncp_notify_change()
947 tmpattr.ia_mode = attr->ia_mode; in ncp_notify_change()
/fs/hostfs/
Dhostfs_user.c202 if (fchmod(fd, attrs->ia_mode) != 0) in set_attr()
204 } else if (chmod(file, attrs->ia_mode) != 0) { in set_attr()
Dhostfs.h42 unsigned short ia_mode; member
/fs/xfs/
Dxfs_acl.c238 iattr.ia_mode = mode; in xfs_set_mode()
/fs/orangefs/
Dorangefs-utils.c190 tmp_mode = iattr->ia_mode; in copy_attributes_from_inode()
478 wbattr.ia_mode = inode->i_mode; in orangefs_flush_inode()
/fs/cifs/
Dinode.c2233 args->mode = attrs->ia_mode;
2391 mode = attrs->ia_mode;
2411 attrs->ia_mode = inode->i_mode & ~S_IWUGO;
2422 attrs->ia_mode &= ~(S_IALLUGO);
2424 attrs->ia_mode |=
2427 attrs->ia_mode |=
/fs/jffs2/
Dacl.c245 attr.ia_mode = mode; in jffs2_set_acl()
Dfs.c108 ri->mode = cpu_to_jemode(iattr->ia_mode); in jffs2_do_setattr()
383 iattr.ia_mode = inode->i_mode; in jffs2_dirty_inode()
/fs/9p/
Dacl.c282 retval = posix_acl_update_mode(inode, &iattr.ia_mode, &acl); in v9fs_xattr_set_acl()
/fs/ocfs2/
Docfs2_trace.h1407 unsigned int ia_valid, unsigned int ia_mode,
1410 ia_valid, ia_mode, ia_uid, ia_gid),
1418 __field(unsigned int, ia_mode)
1429 __entry->ia_mode = ia_mode;
1435 __get_str(d_name), __entry->ia_valid, __entry->ia_mode,
/fs/fuse/
Ddir.c1534 arg->valid |= FATTR_MODE, arg->mode = iattr->ia_mode; in iattr_to_fattr()
1797 attr->ia_mode = inode->i_mode; in fuse_setattr()
1800 attr->ia_mode &= ~S_ISUID; in fuse_setattr()
1804 attr->ia_mode &= ~S_ISGID; in fuse_setattr()

12