Lines Matching refs:stbuf
626 static void set_stat(struct fuse *f, fuse_ino_t nodeid, struct stat *stbuf) in set_stat() argument
629 stbuf->st_ino = nodeid; in set_stat()
631 stbuf->st_mode = (stbuf->st_mode & S_IFMT) | (0777 & ~f->conf.umask); in set_stat()
633 stbuf->st_uid = f->conf.uid; in set_stat()
635 stbuf->st_gid = f->conf.gid; in set_stat()
1127 static int mtime_eq(const struct stat *stbuf, const struct timespec *ts) in mtime_eq() argument
1129 return stbuf->st_mtime == ts->tv_sec && ST_MTIM_NSEC(stbuf) == ts->tv_nsec; in mtime_eq()
1150 static void update_stat(struct node *node, const struct stat *stbuf) in update_stat() argument
1152 if (node->cache_valid && (!mtime_eq(stbuf, &node->mtime) || in update_stat()
1153 stbuf->st_size != node->size)) in update_stat()
1155 node->mtime.tv_sec = stbuf->st_mtime; in update_stat()
1156 node->mtime.tv_nsec = ST_MTIM_NSEC(stbuf); in update_stat()
1157 node->size = stbuf->st_size; in update_stat()
1861 struct stat stbuf; in open_auto_cache() local
1864 err = fuse_fs_fgetattr(f->fs, path, &stbuf, fi); in open_auto_cache()
1867 update_stat(node, &stbuf); in open_auto_cache()
2131 struct stat stbuf; in fill_dir() local
2135 stbuf = *statp; in fill_dir()
2137 memset(&stbuf, 0, sizeof(stbuf)); in fill_dir()
2138 stbuf.st_ino = FUSE_UNKNOWN_INO; in fill_dir()
2142 stbuf.st_ino = FUSE_UNKNOWN_INO; in fill_dir()
2148 stbuf.st_ino = (ino_t) node->nodeid; in fill_dir()
2160 &stbuf, off); in fill_dir()
2169 name, &stbuf, newlen); in fill_dir()