Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 22 of 22) sorted by relevance

/fs/hostfs/
Dhostfs_user.c236 int set_attr(const char *file, struct hostfs_iattr *attrs, int fd) in set_attr() argument
242 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr()
244 if (fchmod(fd, attrs->ia_mode) != 0) in set_attr()
246 } else if (chmod(file, attrs->ia_mode) != 0) { in set_attr()
250 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr()
252 if (fchown(fd, attrs->ia_uid, -1)) in set_attr()
254 } else if (chown(file, attrs->ia_uid, -1)) { in set_attr()
258 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr()
260 if (fchown(fd, -1, attrs->ia_gid)) in set_attr()
262 } else if (chown(file, -1, attrs->ia_gid)) { in set_attr()
[all …]
Dhostfs_kern.c851 struct hostfs_iattr attrs; in hostfs_setattr() local
864 attrs.ia_valid = 0; in hostfs_setattr()
866 attrs.ia_valid |= HOSTFS_ATTR_MODE; in hostfs_setattr()
867 attrs.ia_mode = attr->ia_mode; in hostfs_setattr()
870 attrs.ia_valid |= HOSTFS_ATTR_UID; in hostfs_setattr()
871 attrs.ia_uid = attr->ia_uid; in hostfs_setattr()
874 attrs.ia_valid |= HOSTFS_ATTR_GID; in hostfs_setattr()
875 attrs.ia_gid = attr->ia_gid; in hostfs_setattr()
878 attrs.ia_valid |= HOSTFS_ATTR_SIZE; in hostfs_setattr()
879 attrs.ia_size = attr->ia_size; in hostfs_setattr()
[all …]
Dhostfs.h76 extern int set_attr(const char *file, struct hostfs_iattr *attrs, int fd);
/fs/cifs/
Dinode.c752 cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid, argument
766 if (attrs->ia_valid & ATTR_ATIME) {
769 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_atime));
773 if (attrs->ia_valid & ATTR_MTIME) {
776 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_mtime));
786 if (set_time && (attrs->ia_valid & ATTR_CTIME)) {
789 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_ctime));
970 struct iattr *attrs = NULL; local
1011 attrs = kzalloc(sizeof(*attrs), GFP_KERNEL);
1012 if (attrs == NULL) {
[all …]
DTODO80 u) DOS attrs - returned as pseudo-xattr in Samba format (check VFAT and NTFS for this too)
/fs/fat/
Dfat.h155 u8 attrs, mode_t mode) in fat_make_mode() argument
157 if (attrs & ATTR_RO && !((attrs & ATTR_DIR) && !sbi->options.rodir)) in fat_make_mode()
160 if (attrs & ATTR_DIR) in fat_make_mode()
169 u8 attrs = MSDOS_I(inode)->i_attrs; in fat_make_attrs() local
171 attrs |= ATTR_DIR; in fat_make_attrs()
173 attrs |= ATTR_RO; in fat_make_attrs()
174 return attrs; in fat_make_attrs()
177 static inline void fat_save_attrs(struct inode *inode, u8 attrs) in fat_save_attrs() argument
180 MSDOS_I(inode)->i_attrs = attrs & ATTR_UNUSED; in fat_save_attrs()
182 MSDOS_I(inode)->i_attrs = attrs & (ATTR_UNUSED | ATTR_RO); in fat_save_attrs()
/fs/coda/
Ddir.c207 struct coda_vattr attrs; in coda_create() local
217 0, mode, &newfid, &attrs); in coda_create()
225 inode = coda_iget(dir->i_sb, &newfid, &attrs); in coda_create()
242 struct coda_vattr attrs; in coda_mkdir() local
255 attrs.va_mode = mode; in coda_mkdir()
257 name, len, &newfid, &attrs); in coda_mkdir()
265 inode = coda_iget(dir->i_sb, &newfid, &attrs); in coda_mkdir()
Dupcall.c202 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/nfsd/
Dnfsproc.c84 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
87 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,0, (time_t)0); in nfsd_proc_setattr()
208 struct iattr *attr = &argp->attrs; in nfsd_proc_create()
425 &newfh, &argp->attrs); in nfsd_proc_symlink()
450 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir()
453 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd_proc_mkdir()
Dnfs3proc.c91 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
243 attr = &argp->attrs; in nfsd3_proc_create()
281 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd3_proc_mkdir()
285 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd3_proc_mkdir()
305 &resp->fh, &argp->attrs); in nfsd3_proc_symlink()
341 &argp->attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
Dnfsxdr.c238 p = decode_sattr(p, &args->attrs); in nfssvc_decode_sattrargs()
345 p = decode_sattr(p, &args->attrs); in nfssvc_decode_createargs()
393 p = decode_sattr(p, &args->attrs); in nfssvc_decode_symlinkargs()
Dnfs3xdr.c298 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_sattrargs()
428 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_createargs()
447 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_mkdirargs()
464 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_symlinkargs()
517 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_mknodargs()
/fs/reiserfs/
Dxattr.c771 struct iattr *attrs; member
781 struct iattr *attrs = chown_buf->attrs; in reiserfs_chown_xattrs_filler() local
793 err = notify_change(xafile, attrs); in reiserfs_chown_xattrs_filler()
799 int reiserfs_chown_xattrs(struct inode *inode, struct iattr *attrs) in reiserfs_chown_xattrs() argument
804 unsigned int ia_valid = attrs->ia_valid; in reiserfs_chown_xattrs()
826 attrs->ia_valid &= (ATTR_UID | ATTR_GID | ATTR_CTIME); in reiserfs_chown_xattrs()
828 buf.attrs = attrs; in reiserfs_chown_xattrs()
837 err = notify_change(dir, attrs); in reiserfs_chown_xattrs()
844 attrs->ia_valid = ia_valid; in reiserfs_chown_xattrs()
/fs/sysfs/
Dgroup.c25 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()
/fs/ocfs2/cluster/
Dsys.c52 .attrs = o2cb_attrs,
/fs/gfs2/
Dsys.c404 .attrs = lockstruct_attrs,
409 .attrs = args_attrs,
414 .attrs = tune_attrs,
/fs/
Dbad_inode.c251 static int bad_inode_setattr(struct dentry *direntry, struct iattr *attrs) in bad_inode_setattr() argument
/fs/nfs/
Dnfs4proc.c306 struct iattr attrs; member
327 const struct iattr *attrs) in nfs4_opendata_alloc() argument
359 p->o_arg.u.attrs = &p->attrs; in nfs4_opendata_alloc()
360 memcpy(&p->attrs, attrs, sizeof(p->attrs)); in nfs4_opendata_alloc()
2219 data->arg.attrs = sattr; in nfs4_alloc_createdata()
Dnfs4xdr.c796 encode_attrs(xdr, create->attrs, create->server); in encode_create()
996 encode_attrs(xdr, arg->u.attrs, arg->server); in encode_createmode()
1163 uint32_t attrs[2] = { in encode_readdir() local
1178 attrs[0] &= ~FATTR4_WORD0_FILEID; in encode_readdir()
1180 attrs[1] &= ~FATTR4_WORD1_MOUNTED_ON_FILEID; in encode_readdir()
1181 WRITE32(attrs[0] & readdir->bitmask[0]); in encode_readdir()
1182 WRITE32(attrs[1] & readdir->bitmask[1]); in encode_readdir()
1189 attrs[0] & readdir->bitmask[0], in encode_readdir()
1190 attrs[1] & readdir->bitmask[1]); in encode_readdir()
/fs/ocfs2/
Dstackglue.c581 .attrs = ocfs2_attrs,
/fs/ecryptfs/
Dmain.c782 .attrs = attributes,
/fs/partitions/
Dcheck.c292 .attrs = part_attrs,