Lines Matching refs:stat
130 struct kstat *stat)
138 type = (stat->mode & S_IFMT);
141 *p++ = htonl((u32) stat->mode);
142 *p++ = htonl((u32) stat->nlink);
143 *p++ = htonl((u32) from_kuid_munged(userns, stat->uid));
144 *p++ = htonl((u32) from_kgid_munged(userns, stat->gid));
146 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) {
149 *p++ = htonl((u32) stat->size);
151 *p++ = htonl((u32) stat->blksize);
153 *p++ = htonl(new_encode_dev(stat->rdev));
156 *p++ = htonl((u32) stat->blocks);
160 *p++ = htonl(new_encode_dev(stat->dev));
173 *p++ = htonl((u32) stat->ino);
174 *p++ = htonl((u32) stat->atime.tv_sec);
175 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0);
176 time = stat->mtime;
180 *p++ = htonl((u32) stat->ctime.tv_sec);
181 *p++ = htonl(stat->ctime.tv_nsec ? stat->ctime.tv_nsec / 1000 : 0);
187 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat)
189 return encode_fattr(rqstp, p, fhp, stat);
449 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat);
463 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat);
498 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat);
535 struct kstatfs *stat = &resp->stats;
542 *p++ = htonl(stat->f_bsize);
543 *p++ = htonl(stat->f_blocks);
544 *p++ = htonl(stat->f_bfree);
545 *p++ = htonl(stat->f_bavail);