Home
last modified time | relevance | path

Searched refs:stbuf (Results 1 – 11 of 11) sorted by relevance

/openbmc/qemu/hw/9pfs/
H A D9p-synth.c139 static void synth_fill_statbuf(V9fsSynthNode *node, struct stat *stbuf) in synth_fill_statbuf() argument
141 stbuf->st_dev = 0; in synth_fill_statbuf()
142 stbuf->st_ino = node->attr->inode; in synth_fill_statbuf()
143 stbuf->st_mode = node->attr->mode; in synth_fill_statbuf()
144 stbuf->st_nlink = node->attr->nlink; in synth_fill_statbuf()
145 stbuf->st_uid = 0; in synth_fill_statbuf()
146 stbuf->st_gid = 0; in synth_fill_statbuf()
147 stbuf->st_rdev = 0; in synth_fill_statbuf()
148 stbuf->st_size = 0; in synth_fill_statbuf()
149 stbuf->st_blksize = 0; in synth_fill_statbuf()
[all …]
H A D9p.c869 static int qid_path_fullmap(V9fsPDU *pdu, const struct stat *stbuf, in qid_path_fullmap() argument
873 .dev = stbuf->st_dev, in qid_path_fullmap()
874 .ino = stbuf->st_ino in qid_path_fullmap()
946 static int qid_path_suffixmap(V9fsPDU *pdu, const struct stat *stbuf, in qid_path_suffixmap() argument
949 const int ino_hash_bits = qid_inode_prefix_hash_bits(pdu, stbuf->st_dev); in qid_path_suffixmap()
951 .dev = stbuf->st_dev, in qid_path_suffixmap()
952 .ino_prefix = (uint16_t) (stbuf->st_ino >> (64 - ino_hash_bits)) in qid_path_suffixmap()
976 *path = (stbuf->st_ino << val->qp_affix.bits) | val->qp_affix.value; in qid_path_suffixmap()
980 static int stat_to_qid(V9fsPDU *pdu, const struct stat *stbuf, V9fsQID *qidp) in stat_to_qid() argument
987 err = qid_path_suffixmap(pdu, stbuf, &qidp->path); in stat_to_qid()
[all …]
H A D9p-local.c149 struct stat *stbuf) in local_mapped_file_attr() argument
172 stbuf->st_uid = atoi(buf + 11); in local_mapped_file_attr()
174 stbuf->st_gid = atoi(buf + 11); in local_mapped_file_attr()
176 stbuf->st_mode = atoi(buf + 12); in local_mapped_file_attr()
178 stbuf->st_rdev = atoi(buf + 12); in local_mapped_file_attr()
185 static int local_lstat(FsContext *fs_ctx, V9fsPath *fs_path, struct stat *stbuf) in local_lstat() argument
197 err = qemu_fstatat(dirfd, name, stbuf, AT_SYMLINK_NOFOLLOW); in local_lstat()
210 stbuf->st_uid = le32_to_cpu(tmp_uid); in local_lstat()
214 stbuf->st_gid = le32_to_cpu(tmp_gid); in local_lstat()
218 stbuf->st_mode = le32_to_cpu(tmp_mode); in local_lstat()
[all …]
H A Dcofile.c50 int coroutine_fn v9fs_co_lstat(V9fsPDU *pdu, V9fsPath *path, struct stat *stbuf) in v9fs_co_lstat() argument
61 err = s->ops->lstat(&s->ctx, path, stbuf); in v9fs_co_lstat()
71 struct stat *stbuf) in v9fs_co_fstat() argument
81 err = s->ops->fstat(&s->ctx, fidp->fid_type, &fidp->fs, stbuf); in v9fs_co_fstat()
91 err = v9fs_co_lstat(pdu, &fidp->path, stbuf); in v9fs_co_fstat()
133 struct stat *stbuf) in v9fs_co_open2() argument
163 err = s->ops->lstat(&s->ctx, &path, stbuf); in v9fs_co_open2()
H A D9p-util.h128 struct stat stbuf; in close_if_special_file() local
130 if (qemu_fstat(fd, &stbuf) < 0) { in close_if_special_file()
134 if (!S_ISREG(stbuf.st_mode) && !S_ISDIR(stbuf.st_mode)) { in close_if_special_file()
H A Dcodir.c84 struct stat stbuf; in do_readdir_many() local
160 err = s->ops->lstat(&s->ctx, &path, &stbuf); in do_readdir_many()
167 memcpy(e->st, &stbuf, sizeof(struct stat)); in do_readdir_many()
278 gid_t gid, struct stat *stbuf) in v9fs_co_mkdir() argument
302 err = s->ops->lstat(&s->ctx, &path, stbuf); in v9fs_co_mkdir()
H A Dcofs.c78 struct statfs *stbuf) in v9fs_co_statfs() argument
89 err = s->ops->statfs(&s->ctx, path, stbuf); in v9fs_co_statfs()
226 dev_t dev, mode_t mode, struct stat *stbuf) in v9fs_co_mknod() argument
251 err = s->ops->lstat(&s->ctx, &path, stbuf); in v9fs_co_mknod()
348 gid_t gid, struct stat *stbuf) in v9fs_co_symlink() argument
373 err = s->ops->lstat(&s->ctx, &path, stbuf); in v9fs_co_symlink()
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-webadmin/webmin/files/
H A Dinit-exclude.patch60 -local($dir, $f, @stbuf, @rv);
61 +local($dir, $f, @stbuf, @rv, @exclude);
73 if (@stbuf = stat("$dir/$f")) {
74 push(@rv, "$f $stbuf[1]");
/openbmc/ipmitool/src/plugins/imb/
H A Dimb.c58 struct stat stbuf; in ipmi_imb_open() local
60 if (stat(IPMI_IMB_DEV, &stbuf) < 0) { in ipmi_imb_open()
/openbmc/skeleton/op-flasher/
H A Dflasher_obj.c206 struct stat stbuf; in flash() local
207 if(stat(write_file, &stbuf)) { in flash()
211 uint32_t write_size = stbuf.st_size; in flash()
/openbmc/qemu/fsdev/
H A Dfile-op-9p.h160 int (*statfs)(FsContext *s, V9fsPath *path, struct statfs *stbuf);