/fs/hostfs/ |
D | hostfs_user.c | 198 int set_attr(const char *file, struct hostfs_iattr *attrs, int fd) in set_attr() argument 204 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr() 206 if (fchmod(fd, attrs->ia_mode) != 0) in set_attr() 208 } else if (chmod(file, attrs->ia_mode) != 0) { in set_attr() 212 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr() 214 if (fchown(fd, attrs->ia_uid, -1)) in set_attr() 216 } else if (chown(file, attrs->ia_uid, -1)) { in set_attr() 220 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr() 222 if (fchown(fd, -1, attrs->ia_gid)) in set_attr() 224 } 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 | 82 extern int set_attr(const char *file, struct hostfs_iattr *attrs, int fd);
|
/fs/cifs/ |
D | inode.c | 929 cifs_set_file_info(struct inode *inode, struct iattr *attrs, unsigned int xid, argument 937 if (attrs == NULL) 944 if (attrs->ia_valid & ATTR_ATIME) { 947 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_atime)); 951 if (attrs->ia_valid & ATTR_MTIME) { 954 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_mtime)); 964 if (set_time && (attrs->ia_valid & ATTR_CTIME)) { 967 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_ctime)); 1131 struct iattr *attrs = NULL; local 1184 attrs = kzalloc(sizeof(*attrs), GFP_KERNEL); [all …]
|
/fs/fat/ |
D | fat.h | 176 u8 attrs, umode_t mode) in fat_make_mode() argument 178 if (attrs & ATTR_RO && !((attrs & ATTR_DIR) && !sbi->options.rodir)) in fat_make_mode() 181 if (attrs & ATTR_DIR) in fat_make_mode() 190 u8 attrs = MSDOS_I(inode)->i_attrs; in fat_make_attrs() local 192 attrs |= ATTR_DIR; in fat_make_attrs() 194 attrs |= ATTR_RO; in fat_make_attrs() 195 return attrs; in fat_make_attrs() 198 static inline void fat_save_attrs(struct inode *inode, u8 attrs) in fat_save_attrs() argument 201 MSDOS_I(inode)->i_attrs = attrs & ATTR_UNUSED; in fat_save_attrs() 203 MSDOS_I(inode)->i_attrs = attrs & (ATTR_UNUSED | ATTR_RO); in fat_save_attrs()
|
/fs/exofs/ |
D | super.c | 268 struct osd_attr attrs[] = { in __sbi_read_stats() local 280 ios->in_attr = attrs; in __sbi_read_stats() 281 ios->in_attr_len = ARRAY_SIZE(attrs); in __sbi_read_stats() 289 ret = extract_attr_from_ios(ios, &attrs[0]); in __sbi_read_stats() 294 if (attrs[0].len) { in __sbi_read_stats() 297 if (unlikely(attrs[0].len != sizeof(*ess))) { in __sbi_read_stats() 300 __func__, attrs[0].len, sizeof(*ess)); in __sbi_read_stats() 304 ess = attrs[0].val_ptr; in __sbi_read_stats() 323 struct osd_attr attrs[] = { in exofs_sbi_write_stats() local 337 attrs[0].val_ptr = &sbi->s_ess; in exofs_sbi_write_stats() [all …]
|
D | inode.c | 1067 struct osd_attr attrs[] = { in exofs_get_inode() local 1082 attrs[1].len = exofs_on_disk_inode_layout_size(sbi->oc.numdevs); in exofs_get_inode() 1083 attrs[2].len = exofs_on_disk_inode_layout_size(sbi->oc.numdevs); in exofs_get_inode() 1085 ios->in_attr = attrs; in exofs_get_inode() 1086 ios->in_attr_len = ARRAY_SIZE(attrs); in exofs_get_inode() 1102 ret = extract_attr_from_ios(ios, &attrs[0]); in exofs_get_inode() 1107 WARN_ON(attrs[0].len != EXOFS_INO_ATTR_SIZE); in exofs_get_inode() 1108 memcpy(inode, attrs[0].val_ptr, EXOFS_INO_ATTR_SIZE); in exofs_get_inode() 1110 ret = extract_attr_from_ios(ios, &attrs[1]); in exofs_get_inode() 1115 if (attrs[1].len) { in exofs_get_inode() [all …]
|
/fs/sysfs/ |
D | group.c | 25 for (i = 0, attr = grp->attrs; *attr; i++, attr++) in remove_files() 35 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files() 70 if (!grp->attrs) { in internal_create_group() 176 for ((i = 0, attr = grp->attrs); *attr && !error; (++i, ++attr)) in sysfs_merge_group() 201 for (attr = grp->attrs; *attr; ++attr) in sysfs_unmerge_group()
|
D | inode.c | 55 struct sysfs_inode_attrs *attrs; in sysfs_init_inode_attrs() local 58 attrs = kzalloc(sizeof(struct sysfs_inode_attrs), GFP_KERNEL); in sysfs_init_inode_attrs() 59 if (!attrs) in sysfs_init_inode_attrs() 61 iattrs = &attrs->ia_iattr; in sysfs_init_inode_attrs() 69 return attrs; in sysfs_init_inode_attrs()
|
/fs/nfsd/ |
D | xdr.h | 16 struct iattr attrs; member 43 struct iattr attrs; member 73 struct iattr attrs; member
|
D | xdr3.h | 14 struct iattr attrs; member 51 struct iattr attrs; member 61 struct iattr attrs; member 91 struct iattr attrs; member
|
D | nfsproc.c | 65 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr() 68 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,0, (time_t)0); in nfsd_proc_setattr() 188 struct iattr *attr = &argp->attrs; in nfsd_proc_create() 410 &newfh, &argp->attrs); in nfsd_proc_symlink() 435 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir() 438 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd_proc_mkdir()
|
D | vfs.h | 61 char *name, int len, struct iattr *attrs, 66 char *name, int len, struct iattr *attrs,
|
D | nfs3proc.c | 75 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr() 228 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() 290 &resp->fh, &argp->attrs); in nfsd3_proc_symlink() 326 &argp->attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
|
D | nfsxdr.c | 229 p = decode_sattr(p, &args->attrs); in nfssvc_decode_sattrargs() 337 p = decode_sattr(p, &args->attrs); in nfssvc_decode_createargs() 385 p = decode_sattr(p, &args->attrs); in nfssvc_decode_symlinkargs()
|
D | nfs3xdr.c | 292 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_sattrargs() 423 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_createargs() 442 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_mkdirargs() 459 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_symlinkargs() 511 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_mknodargs()
|
/fs/coda/ |
D | dir.c | 198 struct coda_vattr attrs; in coda_create() local 204 0, mode, &newfid, &attrs); in coda_create() 208 inode = coda_iget(dir->i_sb, &newfid, &attrs); in coda_create() 226 struct coda_vattr attrs; in coda_mkdir() local 235 attrs.va_mode = mode; in coda_mkdir() 237 name, len, &newfid, &attrs); in coda_mkdir() 241 inode = coda_iget(dir->i_sb, &newfid, &attrs); in coda_mkdir()
|
D | upcall.c | 202 struct CodaFid *newfid, struct coda_vattr *attrs) in venus_mkdir() argument 214 inp->coda_mkdir.attr = *attrs; in venus_mkdir() 222 *attrs = outp->coda_mkdir.attr; in venus_mkdir() 270 struct CodaFid *newfid, struct coda_vattr *attrs) in venus_create() argument 293 *attrs = outp->coda_create.attr; in venus_create()
|
/fs/sdcardfs/ |
D | sdcardfs.h | 547 struct iattr attrs; in prepare_dir() local 565 attrs.ia_uid = uid; in prepare_dir() 566 attrs.ia_gid = gid; in prepare_dir() 567 attrs.ia_valid = ATTR_UID | ATTR_GID; in prepare_dir() 569 notify_change2(parent.mnt, dent, &attrs); in prepare_dir()
|
/fs/reiserfs/ |
D | xattr.c | 320 struct iattr *attrs = data; in chown_one_xattr() local 321 int ia_valid = attrs->ia_valid; in chown_one_xattr() 329 attrs->ia_valid &= (ATTR_UID|ATTR_GID); in chown_one_xattr() 330 err = reiserfs_setattr(dentry, attrs); in chown_one_xattr() 331 attrs->ia_valid = ia_valid; in chown_one_xattr() 347 int reiserfs_chown_xattrs(struct inode *inode, struct iattr *attrs) in reiserfs_chown_xattrs() argument 349 int err = reiserfs_for_each_xattr(inode, chown_one_xattr, attrs); in reiserfs_chown_xattrs()
|
D | xattr.h | 17 int reiserfs_chown_xattrs(struct inode *inode, struct iattr *attrs);
|
/fs/ocfs2/cluster/ |
D | sys.c | 52 .attrs = o2cb_attrs,
|
/fs/ |
D | bad_inode.c | 244 static int bad_inode_setattr(struct dentry *direntry, struct iattr *attrs) in bad_inode_setattr() argument
|
/fs/gfs2/ |
D | sys.c | 609 .attrs = tune_attrs, 614 .attrs = lock_module_attrs,
|
/fs/nfs/ |
D | nfs4xdr.c | 1139 encode_attrs(xdr, create->attrs, create->server); in encode_create() 1370 encode_attrs(xdr, arg->u.attrs, arg->server); in encode_createmode() 1374 encode_attrs(xdr, arg->u.attrs, arg->server); in encode_createmode() 1535 uint32_t attrs[2] = { in encode_readdir() local 1543 attrs[0] |= FATTR4_WORD0_TYPE|FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE| in encode_readdir() 1545 attrs[1] |= FATTR4_WORD1_MODE|FATTR4_WORD1_NUMLINKS|FATTR4_WORD1_OWNER| in encode_readdir() 1553 attrs[0] |= FATTR4_WORD0_FILEID; in encode_readdir() 1563 *p++ = cpu_to_be32(attrs[0] & readdir->bitmask[0]); in encode_readdir() 1564 *p = cpu_to_be32(attrs[1] & readdir->bitmask[1]); in encode_readdir() 1570 attrs[0] & readdir->bitmask[0], in encode_readdir() [all …]
|