Lines Matching refs:stbuf
1535 static void set_stat(struct fuse *f, fuse_ino_t nodeid, struct stat *stbuf) in set_stat() argument
1538 stbuf->st_ino = nodeid; in set_stat()
1540 stbuf->st_mode = (stbuf->st_mode & S_IFMT) | in set_stat()
1543 stbuf->st_uid = f->conf.uid; in set_stat()
1545 stbuf->st_gid = f->conf.gid; in set_stat()
2473 static int mtime_eq(const struct stat *stbuf, const struct timespec *ts) in mtime_eq() argument
2475 return stbuf->st_mtime == ts->tv_sec && in mtime_eq()
2476 ST_MTIM_NSEC(stbuf) == ts->tv_nsec; in mtime_eq()
2497 static void update_stat(struct node *node, const struct stat *stbuf) in update_stat() argument
2499 if (node->cache_valid && (!mtime_eq(stbuf, &node->mtime) || in update_stat()
2500 stbuf->st_size != node->size)) in update_stat()
2502 node->mtime.tv_sec = stbuf->st_mtime; in update_stat()
2503 node->mtime.tv_nsec = ST_MTIM_NSEC(stbuf); in update_stat()
2504 node->size = stbuf->st_size; in update_stat()
3237 struct stat stbuf; in open_auto_cache() local
3240 err = fuse_fs_getattr(f->fs, path, &stbuf, fi); in open_auto_cache()
3243 update_stat(node, &stbuf); in open_auto_cache()
3492 struct stat stbuf; in fill_dir() local
3500 stbuf = *statp; in fill_dir()
3502 memset(&stbuf, 0, sizeof(stbuf)); in fill_dir()
3503 stbuf.st_ino = FUSE_UNKNOWN_INO; in fill_dir()
3507 stbuf.st_ino = FUSE_UNKNOWN_INO; in fill_dir()
3509 stbuf.st_ino = (ino_t) in fill_dir()
3533 &stbuf, off); in fill_dir()
3541 if (fuse_add_direntry_to_dh(dh, name, &stbuf) == -1) in fill_dir()