Lines Matching refs:stbuf
107 static int tfs_stat(fuse_ino_t ino, struct stat *stbuf) {
108 stbuf->st_ino = ino;
110 stbuf->st_mode = S_IFDIR | 0755;
111 stbuf->st_nlink = 1;
115 stbuf->st_mode = S_IFREG | 0444;
116 stbuf->st_nlink = 1;
117 stbuf->st_size = file_size;
162 struct stat stbuf;
166 memset(&stbuf, 0, sizeof(stbuf));
167 if (tfs_stat(ino, &stbuf) != 0)
170 fuse_reply_attr(req, &stbuf, NO_TIMEOUT);
180 struct stat stbuf;
184 memset(&stbuf, 0, sizeof(stbuf));
185 stbuf.st_ino = ino;
186 fuse_add_direntry(req, b->p + oldsize, b->size - oldsize, name, &stbuf,