Lines Matching defs:stbuf

58 static void convert_stat(const struct stat *stbuf, struct fuse_attr *attr)
60 attr->ino = stbuf->st_ino;
61 attr->mode = stbuf->st_mode;
62 attr->nlink = stbuf->st_nlink;
63 attr->uid = stbuf->st_uid;
64 attr->gid = stbuf->st_gid;
65 attr->rdev = stbuf->st_rdev;
66 attr->size = stbuf->st_size;
67 attr->blksize = stbuf->st_blksize;
68 attr->blocks = stbuf->st_blocks;
69 attr->atime = stbuf->st_atime;
70 attr->mtime = stbuf->st_mtime;
71 attr->ctime = stbuf->st_ctime;
72 attr->atimensec = ST_ATIM_NSEC(stbuf);
73 attr->mtimensec = ST_MTIM_NSEC(stbuf);
74 attr->ctimensec = ST_CTIM_NSEC(stbuf);
77 static void convert_attr(const struct fuse_setattr_in *attr, struct stat *stbuf)
79 stbuf->st_mode = attr->mode;
80 stbuf->st_uid = attr->uid;
81 stbuf->st_gid = attr->gid;
82 stbuf->st_size = attr->size;
83 stbuf->st_atime = attr->atime;
84 stbuf->st_mtime = attr->mtime;
85 stbuf->st_ctime = attr->ctime;
86 ST_ATIM_NSEC_SET(stbuf, attr->atimensec);
87 ST_MTIM_NSEC_SET(stbuf, attr->mtimensec);
88 ST_CTIM_NSEC_SET(stbuf, attr->ctimensec);
280 const char *name, const struct stat *stbuf, off_t off)
296 dirent->ino = stbuf->st_ino;
299 dirent->type = (stbuf->st_mode & S_IFMT) >> 12;
306 static void convert_statfs(const struct statvfs *stbuf,
309 kstatfs->bsize = stbuf->f_bsize;
310 kstatfs->frsize = stbuf->f_frsize;
311 kstatfs->blocks = stbuf->f_blocks;
312 kstatfs->bfree = stbuf->f_bfree;
313 kstatfs->bavail = stbuf->f_bavail;
314 kstatfs->files = stbuf->f_files;
315 kstatfs->ffree = stbuf->f_ffree;
316 kstatfs->namelen = stbuf->f_namemax;
896 int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf)
903 convert_statfs(stbuf, &arg.st);
1180 struct stat stbuf;
1181 memset(&stbuf, 0, sizeof(stbuf));
1182 convert_attr(arg, &stbuf);
1202 req->se->op.setattr(req, nodeid, &stbuf, arg->valid, fi);