• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ntfs-3g-2009.3.8/libfuse-lite/

Lines Matching defs:stbuf

65 static void convert_stat(const struct stat *stbuf, struct fuse_attr *attr)
67 attr->ino = stbuf->st_ino;
68 attr->mode = stbuf->st_mode;
69 attr->nlink = stbuf->st_nlink;
70 attr->uid = stbuf->st_uid;
71 attr->gid = stbuf->st_gid;
72 attr->rdev = stbuf->st_rdev;
73 attr->size = stbuf->st_size;
74 attr->blocks = stbuf->st_blocks;
75 attr->atime = stbuf->st_atime;
76 attr->mtime = stbuf->st_mtime;
77 attr->ctime = stbuf->st_ctime;
78 attr->atimensec = ST_ATIM_NSEC(stbuf);
79 attr->mtimensec = ST_MTIM_NSEC(stbuf);
80 attr->ctimensec = ST_CTIM_NSEC(stbuf);
83 static void convert_attr(const struct fuse_setattr_in *attr, struct stat *stbuf)
85 stbuf->st_mode = attr->mode;
86 stbuf->st_uid = attr->uid;
87 stbuf->st_gid = attr->gid;
88 stbuf->st_size = attr->size;
89 stbuf->st_atime = attr->atime;
90 stbuf->st_mtime = attr->mtime;
91 ST_ATIM_NSEC_SET(stbuf, attr->atimensec);
92 ST_MTIM_NSEC_SET(stbuf, attr->mtimensec);
202 char *fuse_add_dirent(char *buf, const char *name, const struct stat *stbuf,
211 dirent->ino = stbuf->st_ino;
214 dirent->type = (stbuf->st_mode & 0170000) >> 12;
223 const char *name, const struct stat *stbuf, off_t off)
230 fuse_add_dirent(buf, name, stbuf, off);
234 static void convert_statfs(const struct statvfs *stbuf,
237 kstatfs->bsize = stbuf->f_bsize;
238 kstatfs->frsize = stbuf->f_frsize;
239 kstatfs->blocks = stbuf->f_blocks;
240 kstatfs->bfree = stbuf->f_bfree;
241 kstatfs->bavail = stbuf->f_bavail;
242 kstatfs->files = stbuf->f_files;
243 kstatfs->ffree = stbuf->f_ffree;
244 kstatfs->namelen = stbuf->f_namemax;
376 int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf)
382 convert_statfs(stbuf, &arg.st);
461 struct stat stbuf;
462 memset(&stbuf, 0, sizeof(stbuf));
463 convert_attr(arg, &stbuf);
471 req->f->op.setattr(req, nodeid, &stbuf, arg->valid, fi);