Lines Matching defs:attr
75 static void convert_stat(const struct stat *stbuf, struct fuse_attr *attr)
77 attr->ino = stbuf->st_ino;
78 attr->mode = stbuf->st_mode;
79 attr->nlink = stbuf->st_nlink;
80 attr->uid = stbuf->st_uid;
81 attr->gid = stbuf->st_gid;
83 /* Must pack the device the old way (attr->rdev limited to 32 bits) */
84 attr->rdev = ((major(stbuf->st_rdev) & 0x3fff) << 18)
87 attr->rdev = stbuf->st_rdev;
89 attr->size = stbuf->st_size;
90 attr->blocks = stbuf->st_blocks;
91 attr->atime = stbuf->st_atime;
92 attr->mtime = stbuf->st_mtime;
93 attr->ctime = stbuf->st_ctime;
94 attr->atimensec = ST_ATIM_NSEC(stbuf);
95 attr->mtimensec = ST_MTIM_NSEC(stbuf);
96 attr->ctimensec = ST_CTIM_NSEC(stbuf);
98 attr->filling = 0; /* JPA trying to be safe */
102 static void convert_attr(const struct fuse_setattr_in *attr, struct stat *stbuf)
104 stbuf->st_mode = attr->mode;
105 stbuf->st_uid = attr->uid;
106 stbuf->st_gid = attr->gid;
107 stbuf->st_size = attr->size;
108 stbuf->st_atime = attr->atime;
109 stbuf->st_mtime = attr->mtime;
110 ST_ATIM_NSEC_SET(stbuf, attr->atimensec);
111 ST_MTIM_NSEC_SET(stbuf, attr->mtimensec);
329 convert_stat(&e->attr, &arg->attr);
378 int fuse_reply_attr(fuse_req_t req, const struct stat *attr,
386 convert_stat(attr, &arg.attr);