/fs/kernfs/ |
D | inode.c | 74 struct kernfs_iattrs *attrs; in __kernfs_setattr() local 77 attrs = kernfs_iattrs(kn); in __kernfs_setattr() 78 if (!attrs) in __kernfs_setattr() 82 attrs->ia_uid = iattr->ia_uid; in __kernfs_setattr() 84 attrs->ia_gid = iattr->ia_gid; in __kernfs_setattr() 86 attrs->ia_atime = iattr->ia_atime; in __kernfs_setattr() 88 attrs->ia_mtime = iattr->ia_mtime; in __kernfs_setattr() 90 attrs->ia_ctime = iattr->ia_ctime; in __kernfs_setattr() 142 struct kernfs_iattrs *attrs; in kernfs_iop_listxattr() local 144 attrs = kernfs_iattrs(kn); in kernfs_iop_listxattr() [all …]
|
/fs/orangefs/ |
D | orangefs-utils.c | 84 static int orangefs_inode_flags(struct ORANGEFS_sys_attr_s *attrs) in orangefs_inode_flags() argument 87 if (attrs->flags & ORANGEFS_IMMUTABLE_FL) in orangefs_inode_flags() 91 if (attrs->flags & ORANGEFS_APPEND_FL) in orangefs_inode_flags() 95 if (attrs->flags & ORANGEFS_NOATIME_FL) in orangefs_inode_flags() 102 static int orangefs_inode_perms(struct ORANGEFS_sys_attr_s *attrs) in orangefs_inode_perms() argument 106 if (attrs->perms & ORANGEFS_O_EXECUTE) in orangefs_inode_perms() 108 if (attrs->perms & ORANGEFS_O_WRITE) in orangefs_inode_perms() 110 if (attrs->perms & ORANGEFS_O_READ) in orangefs_inode_perms() 113 if (attrs->perms & ORANGEFS_G_EXECUTE) in orangefs_inode_perms() 115 if (attrs->perms & ORANGEFS_G_WRITE) in orangefs_inode_perms() [all …]
|
/fs/hostfs/ |
D | hostfs_user.c | 194 int set_attr(const char *file, struct hostfs_iattr *attrs, int fd) in set_attr() argument 200 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr() 202 if (fchmod(fd, attrs->ia_mode) != 0) in set_attr() 204 } else if (chmod(file, attrs->ia_mode) != 0) { in set_attr() 208 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr() 210 if (fchown(fd, attrs->ia_uid, -1)) in set_attr() 212 } else if (chown(file, attrs->ia_uid, -1)) { in set_attr() 216 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr() 218 if (fchown(fd, -1, attrs->ia_gid)) in set_attr() 220 } else if (chown(file, -1, attrs->ia_gid)) { in set_attr() [all …]
|
D | hostfs_kern.c | 791 struct hostfs_iattr attrs; in hostfs_setattr() local 804 attrs.ia_valid = 0; in hostfs_setattr() 806 attrs.ia_valid |= HOSTFS_ATTR_MODE; in hostfs_setattr() 807 attrs.ia_mode = attr->ia_mode; in hostfs_setattr() 810 attrs.ia_valid |= HOSTFS_ATTR_UID; in hostfs_setattr() 811 attrs.ia_uid = from_kuid(&init_user_ns, attr->ia_uid); in hostfs_setattr() 814 attrs.ia_valid |= HOSTFS_ATTR_GID; in hostfs_setattr() 815 attrs.ia_gid = from_kgid(&init_user_ns, attr->ia_gid); in hostfs_setattr() 818 attrs.ia_valid |= HOSTFS_ATTR_SIZE; in hostfs_setattr() 819 attrs.ia_size = attr->ia_size; in hostfs_setattr() [all …]
|
D | hostfs.h | 83 extern int set_attr(const char *file, struct hostfs_iattr *attrs, int fd);
|
/fs/cifs/ |
D | inode.c | 1136 cifs_set_file_info(struct inode *inode, struct iattr *attrs, unsigned int xid, argument 1144 if (attrs == NULL) 1153 if (attrs->ia_valid & ATTR_ATIME) { 1156 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_atime)); 1160 if (attrs->ia_valid & ATTR_MTIME) { 1163 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_mtime)); 1173 if (set_time && (attrs->ia_valid & ATTR_CTIME)) { 1176 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_ctime)); 1346 struct iattr *attrs = NULL; local 1399 attrs = kzalloc(sizeof(*attrs), GFP_KERNEL); [all …]
|
D | smbdirect.c | 644 static bool frwr_is_supported(struct ib_device_attr *attrs) in frwr_is_supported() argument 646 if (!(attrs->device_cap_flags & IB_DEVICE_MEM_MGT_EXTENSIONS)) in frwr_is_supported() 648 if (attrs->max_fast_reg_page_list_len == 0) in frwr_is_supported() 665 if (!frwr_is_supported(&info->id->device->attrs)) { in smbd_ia_open() 672 info->id->device->attrs.device_cap_flags, in smbd_ia_open() 673 info->id->device->attrs.max_fast_reg_page_list_len); in smbd_ia_open() 679 info->id->device->attrs.max_fast_reg_page_list_len); in smbd_ia_open() 681 if (info->id->device->attrs.device_cap_flags & IB_DEVICE_SG_GAPS_REG) in smbd_ia_open() 1613 if (smbd_send_credit_target > info->id->device->attrs.max_cqe || in _smbd_get_connection() 1614 smbd_send_credit_target > info->id->device->attrs.max_qp_wr) { in _smbd_get_connection() [all …]
|
/fs/fat/ |
D | fat.h | 204 u8 attrs, umode_t mode) in fat_make_mode() argument 206 if (attrs & ATTR_RO && !((attrs & ATTR_DIR) && !sbi->options.rodir)) in fat_make_mode() 209 if (attrs & ATTR_DIR) in fat_make_mode() 218 u8 attrs = MSDOS_I(inode)->i_attrs; in fat_make_attrs() local 220 attrs |= ATTR_DIR; in fat_make_attrs() 222 attrs |= ATTR_RO; in fat_make_attrs() 223 return attrs; in fat_make_attrs() 226 static inline void fat_save_attrs(struct inode *inode, u8 attrs) in fat_save_attrs() argument 229 MSDOS_I(inode)->i_attrs = attrs & ATTR_UNUSED; in fat_save_attrs() 231 MSDOS_I(inode)->i_attrs = attrs & (ATTR_UNUSED | ATTR_RO); in fat_save_attrs()
|
/fs/sysfs/ |
D | group.c | 25 if (grp->attrs) in remove_files() 26 for (attr = grp->attrs; *attr; attr++) in remove_files() 41 if (grp->attrs) { in create_files() 42 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files() 121 if (!grp->attrs && !grp->bin_attrs) { in internal_create_group() 341 for ((i = 0, attr = grp->attrs); *attr && !error; (++i, ++attr)) in sysfs_merge_group() 367 for (attr = grp->attrs; *attr; ++attr) in sysfs_unmerge_group()
|
/fs/coda/ |
D | dir.c | 142 struct coda_vattr attrs; in coda_create() local 148 0, mode, &newfid, &attrs); in coda_create() 152 inode = coda_iget(dir->i_sb, &newfid, &attrs); in coda_create() 170 struct coda_vattr attrs; in coda_mkdir() local 179 attrs.va_mode = mode; in coda_mkdir() 181 name, len, &newfid, &attrs); in coda_mkdir() 185 inode = coda_iget(dir->i_sb, &newfid, &attrs); in coda_mkdir()
|
D | coda_psdev.h | 61 struct CodaFid *newfid, struct coda_vattr *attrs); 64 struct CodaFid *newfid, struct coda_vattr *attrs);
|
D | upcall.c | 203 struct CodaFid *newfid, struct coda_vattr *attrs) in venus_mkdir() argument 215 inp->coda_mkdir.attr = *attrs; in venus_mkdir() 223 *attrs = outp->coda_mkdir.attr; in venus_mkdir() 271 struct CodaFid *newfid, struct coda_vattr *attrs) in venus_create() argument 294 *attrs = outp->coda_create.attr; in venus_create()
|
/fs/nfsd/ |
D | xdr.h | 17 struct iattr attrs; member 44 struct iattr attrs; member 74 struct iattr attrs; member
|
D | xdr3.h | 15 struct iattr attrs; member 52 struct iattr attrs; member 62 struct iattr attrs; member 92 struct iattr attrs; member
|
D | vfs.h | 62 char *name, int len, struct iattr *attrs, 65 char *name, int len, struct iattr *attrs, 70 char *name, int len, struct iattr *attrs,
|
D | nfsproc.c | 65 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr() 71 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr() 246 struct iattr *attr = &argp->attrs; in nfsd_proc_create() 496 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir() 499 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd_proc_mkdir()
|
D | nfs3proc.c | 78 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr() 232 attr = &argp->attrs; in nfsd3_proc_create() 266 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd3_proc_mkdir() 270 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd3_proc_mkdir() 339 &argp->attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
|
D | nfsxdr.c | 220 p = decode_sattr(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfssvc_decode_sattrargs() 323 p = decode_sattr(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfssvc_decode_createargs() 402 decode_sattr(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfssvc_decode_symlinkargs()
|
D | nfs3xdr.c | 330 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_sattrargs() 460 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_createargs() 481 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_mkdirargs() 496 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_symlinkargs() 524 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_mknodargs()
|
/fs/sdcardfs/ |
D | sdcardfs.h | 549 struct iattr attrs; in prepare_dir() local 567 attrs.ia_uid = make_kuid(&init_user_ns, uid); in prepare_dir() 568 attrs.ia_gid = make_kgid(&init_user_ns, gid); in prepare_dir() 569 attrs.ia_valid = ATTR_UID | ATTR_GID; in prepare_dir() 571 notify_change2(parent.mnt, dent, &attrs, NULL); in prepare_dir()
|
/fs/reiserfs/ |
D | xattr.c | 345 struct iattr *attrs = data; in chown_one_xattr() local 346 int ia_valid = attrs->ia_valid; in chown_one_xattr() 354 attrs->ia_valid &= (ATTR_UID|ATTR_GID); in chown_one_xattr() 355 err = reiserfs_setattr(dentry, attrs); in chown_one_xattr() 356 attrs->ia_valid = ia_valid; in chown_one_xattr() 373 int reiserfs_chown_xattrs(struct inode *inode, struct iattr *attrs) in reiserfs_chown_xattrs() argument 375 int err = reiserfs_for_each_xattr(inode, chown_one_xattr, attrs); in reiserfs_chown_xattrs()
|
D | xattr.h | 18 int reiserfs_chown_xattrs(struct inode *inode, struct iattr *attrs);
|
/fs/btrfs/ |
D | sysfs.c | 288 .attrs = btrfs_supported_feature_attrs, 311 .attrs = btrfs_supported_static_feature_attrs, 328 .attrs = btrfs_debug_feature_attrs, 661 struct attribute *attrs[2]; in addrm_unknown_feature_attrs() local 664 .attrs = attrs, in addrm_unknown_feature_attrs() 672 attrs[1] = NULL; in addrm_unknown_feature_attrs() 680 attrs[0] = &fa->kobj_attr.attr; in addrm_unknown_feature_attrs()
|
/fs/ocfs2/cluster/ |
D | sys.c | 37 .attrs = o2cb_attrs,
|
/fs/incfs/ |
D | main.c | 39 .attrs = attributes,
|