Lines Matching defs:stbuf
1486 static void set_stat(struct fuse *f, fuse_ino_t nodeid, struct stat *stbuf)
1489 stbuf->st_ino = nodeid;
1491 stbuf->st_mode = (stbuf->st_mode & S_IFMT) |
1494 stbuf->st_uid = f->conf.uid;
1496 stbuf->st_gid = f->conf.gid;
2424 static int mtime_eq(const struct stat *stbuf, const struct timespec *ts)
2426 return stbuf->st_mtime == ts->tv_sec &&
2427 ST_MTIM_NSEC(stbuf) == ts->tv_nsec;
2448 static void update_stat(struct node *node, const struct stat *stbuf)
2450 if (node->cache_valid && (!mtime_eq(stbuf, &node->mtime) ||
2451 stbuf->st_size != node->size))
2453 node->mtime.tv_sec = stbuf->st_mtime;
2454 node->mtime.tv_nsec = ST_MTIM_NSEC(stbuf);
2455 node->size = stbuf->st_size;
3200 struct stat stbuf;
3203 err = fuse_fs_getattr(f->fs, path, &stbuf, fi);
3206 update_stat(node, &stbuf);
3465 struct stat stbuf;
3473 stbuf = *statp;
3475 memset(&stbuf, 0, sizeof(stbuf));
3476 stbuf.st_ino = FUSE_UNKNOWN_INO;
3480 stbuf.st_ino = FUSE_UNKNOWN_INO;
3482 stbuf.st_ino = (ino_t)
3506 &stbuf, off);
3514 if (fuse_add_direntry_to_dh(dh, name, &stbuf) == -1)