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