Lines Matching +full:- +full:- +full:-
10 * the COPYING file in the top-level directory.
20 #include "fsdev/qemu-fsdev.h"
22 #include "qemu/main-loop.h"
23 #include "qemu/error-report.h"
30 V9fsState *s = pdu->s; in v9fs_co_st_gen()
33 return -EINTR; in v9fs_co_st_gen()
35 if (s->ctx.exops.get_st_gen) { in v9fs_co_st_gen()
39 err = s->ctx.exops.get_st_gen(&s->ctx, path, st_mode, in v9fs_co_st_gen()
40 &v9stat->st_gen); in v9fs_co_st_gen()
42 err = -errno; in v9fs_co_st_gen()
53 V9fsState *s = pdu->s; in v9fs_co_lstat()
56 return -EINTR; in v9fs_co_lstat()
61 err = s->ops->lstat(&s->ctx, path, stbuf); in v9fs_co_lstat()
63 err = -errno; in v9fs_co_lstat()
74 V9fsState *s = pdu->s; in v9fs_co_fstat()
77 return -EINTR; in v9fs_co_fstat()
81 err = s->ops->fstat(&s->ctx, fidp->fid_type, &fidp->fs, stbuf); in v9fs_co_fstat()
83 err = -errno; in v9fs_co_fstat()
87 * Some FS driver (local:mapped-file) can't support fetching attributes in v9fs_co_fstat()
90 if (err == -EOPNOTSUPP) { in v9fs_co_fstat()
91 err = v9fs_co_lstat(pdu, &fidp->path, stbuf); in v9fs_co_fstat()
92 if (err == -ENOENT) { in v9fs_co_fstat()
95 * returned from s->ops->fstat in v9fs_co_fstat()
106 V9fsState *s = pdu->s; in v9fs_co_open()
109 return -EINTR; in v9fs_co_open()
114 err = s->ops->open(&s->ctx, &fidp->path, flags, &fidp->fs); in v9fs_co_open()
115 if (err == -1) { in v9fs_co_open()
116 err = -errno; in v9fs_co_open()
138 V9fsState *s = pdu->s; in v9fs_co_open2()
141 return -EINTR; in v9fs_co_open2()
145 cred.fc_uid = fidp->uid; in v9fs_co_open2()
155 err = s->ops->open2(&s->ctx, &fidp->path, in v9fs_co_open2()
156 name->data, flags, &cred, &fidp->fs); in v9fs_co_open2()
158 err = -errno; in v9fs_co_open2()
161 err = v9fs_name_to_path(s, &fidp->path, name->data, &path); in v9fs_co_open2()
163 err = s->ops->lstat(&s->ctx, &path, stbuf); in v9fs_co_open2()
165 err = -errno; in v9fs_co_open2()
166 s->ops->close(&s->ctx, &fidp->fs); in v9fs_co_open2()
168 v9fs_path_copy(&fidp->path, &path); in v9fs_co_open2()
171 s->ops->close(&s->ctx, &fidp->fs); in v9fs_co_open2()
189 V9fsState *s = pdu->s; in v9fs_co_close()
192 return -EINTR; in v9fs_co_close()
196 err = s->ops->close(&s->ctx, fs); in v9fs_co_close()
198 err = -errno; in v9fs_co_close()
206 total_open_fd--; in v9fs_co_close()
214 V9fsState *s = pdu->s; in v9fs_co_fsync()
217 return -EINTR; in v9fs_co_fsync()
221 err = s->ops->fsync(&s->ctx, fidp->fid_type, &fidp->fs, datasync); in v9fs_co_fsync()
223 err = -errno; in v9fs_co_fsync()
233 V9fsState *s = pdu->s; in v9fs_co_link()
236 return -EINTR; in v9fs_co_link()
241 err = s->ops->link(&s->ctx, &oldfid->path, in v9fs_co_link()
242 &newdirfid->path, name->data); in v9fs_co_link()
244 err = -errno; in v9fs_co_link()
255 V9fsState *s = pdu->s; in v9fs_co_pwritev()
258 return -EINTR; in v9fs_co_pwritev()
260 fsdev_co_throttle_request(s->ctx.fst, THROTTLE_WRITE, iov, iovcnt); in v9fs_co_pwritev()
263 err = s->ops->pwritev(&s->ctx, &fidp->fs, iov, iovcnt, offset); in v9fs_co_pwritev()
265 err = -errno; in v9fs_co_pwritev()
275 V9fsState *s = pdu->s; in v9fs_co_preadv()
278 return -EINTR; in v9fs_co_preadv()
280 fsdev_co_throttle_request(s->ctx.fst, THROTTLE_READ, iov, iovcnt); in v9fs_co_preadv()
283 err = s->ops->preadv(&s->ctx, &fidp->fs, iov, iovcnt, offset); in v9fs_co_preadv()
285 err = -errno; in v9fs_co_preadv()