Home
last modified time | relevance | path

Searched refs:iap (Results 1 – 5 of 5) sorted by relevance

/fs/nfsd/
Dvfs.c304 nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap, in nfsd_setattr() argument
315 if (iap->ia_valid & (ATTR_ATIME | ATTR_MTIME | ATTR_SIZE)) in nfsd_setattr()
317 if (iap->ia_valid & ATTR_SIZE) in nfsd_setattr()
330 iap->ia_valid &= ~ATTR_MODE; in nfsd_setattr()
332 if (!iap->ia_valid) in nfsd_setattr()
349 if ((iap->ia_valid & BOTH_TIME_SET) == BOTH_TIME_SET && in nfsd_setattr()
350 iap->ia_mtime.tv_sec == iap->ia_atime.tv_sec) { in nfsd_setattr()
358 time_t delta = iap->ia_atime.tv_sec - get_seconds(); in nfsd_setattr()
362 inode_change_ok(inode, iap) != 0) { in nfsd_setattr()
368 iap->ia_valid &= ~BOTH_TIME_SET; in nfsd_setattr()
[all …]
Dnfsxdr.c89 decode_sattr(__be32 *p, struct iattr *iap) in decode_sattr() argument
93 iap->ia_valid = 0; in decode_sattr()
100 iap->ia_valid |= ATTR_MODE; in decode_sattr()
101 iap->ia_mode = tmp; in decode_sattr()
104 iap->ia_uid = make_kuid(&init_user_ns, tmp); in decode_sattr()
105 if (uid_valid(iap->ia_uid)) in decode_sattr()
106 iap->ia_valid |= ATTR_UID; in decode_sattr()
109 iap->ia_gid = make_kgid(&init_user_ns, tmp); in decode_sattr()
110 if (gid_valid(iap->ia_gid)) in decode_sattr()
111 iap->ia_valid |= ATTR_GID; in decode_sattr()
[all …]
Dnfs3xdr.c98 decode_sattr3(__be32 *p, struct iattr *iap) in decode_sattr3() argument
102 iap->ia_valid = 0; in decode_sattr3()
105 iap->ia_valid |= ATTR_MODE; in decode_sattr3()
106 iap->ia_mode = ntohl(*p++); in decode_sattr3()
109 iap->ia_uid = make_kuid(&init_user_ns, ntohl(*p++)); in decode_sattr3()
110 if (uid_valid(iap->ia_uid)) in decode_sattr3()
111 iap->ia_valid |= ATTR_UID; in decode_sattr3()
114 iap->ia_gid = make_kgid(&init_user_ns, ntohl(*p++)); in decode_sattr3()
115 if (gid_valid(iap->ia_gid)) in decode_sattr3()
116 iap->ia_valid |= ATTR_GID; in decode_sattr3()
[all …]
/fs/nfs/
Dnfs4xdr.c971 static void encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, const struct nfs_server *… in encode_attrs() argument
993 if (iap->ia_valid & ATTR_SIZE) in encode_attrs()
995 if (iap->ia_valid & ATTR_MODE) in encode_attrs()
997 if (iap->ia_valid & ATTR_UID) { in encode_attrs()
998 owner_namelen = nfs_map_uid_to_name(server, iap->ia_uid, owner_name, IDMAP_NAMESZ); in encode_attrs()
1001 from_kuid(&init_user_ns, iap->ia_uid)); in encode_attrs()
1009 if (iap->ia_valid & ATTR_GID) { in encode_attrs()
1010 owner_grouplen = nfs_map_gid_to_group(server, iap->ia_gid, owner_group, IDMAP_NAMESZ); in encode_attrs()
1013 from_kgid(&init_user_ns, iap->ia_gid)); in encode_attrs()
1020 if (iap->ia_valid & ATTR_ATIME_SET) in encode_attrs()
[all …]
Dnfs4proc.c2130 .iap = sattr, in _nfs4_do_setattr()