Lines Matching refs:stbuf
104 static int tfs_stat(fuse_ino_t ino, struct stat *stbuf) {
105 stbuf->st_ino = ino;
107 stbuf->st_mode = S_IFDIR | 0755;
108 stbuf->st_nlink = 1;
112 stbuf->st_mode = S_IFREG | 0444;
113 stbuf->st_nlink = 1;
114 stbuf->st_size = file_size;
159 struct stat stbuf;
163 memset(&stbuf, 0, sizeof(stbuf));
164 if (tfs_stat(ino, &stbuf) != 0)
167 fuse_reply_attr(req, &stbuf, NO_TIMEOUT);
177 struct stat stbuf;
181 memset(&stbuf, 0, sizeof(stbuf));
182 stbuf.st_ino = ino;
183 fuse_add_direntry(req, b->p + oldsize, b->size - oldsize, name, &stbuf,