Lines Matching full:path
25 static ssize_t __readlink(V9fsState *s, V9fsPath *path, V9fsString *buf) in __readlink() argument
31 len = s->ops->readlink(&s->ctx, path, buf->data, maxlen); in __readlink()
57 int coroutine_fn v9fs_co_readlink(V9fsPDU *pdu, V9fsPath *path, V9fsString *buf) in v9fs_co_readlink() argument
68 err = __readlink(s, path, buf); in v9fs_co_readlink()
77 int coroutine_fn v9fs_co_statfs(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_statfs() argument
89 err = s->ops->statfs(&s->ctx, path, stbuf); in v9fs_co_statfs()
98 int coroutine_fn v9fs_co_chmod(V9fsPDU *pdu, V9fsPath *path, mode_t mode) in v9fs_co_chmod() argument
112 err = s->ops->chmod(&s->ctx, path, &cred); in v9fs_co_chmod()
121 int coroutine_fn v9fs_co_utimensat(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_utimensat() argument
133 err = s->ops->utimensat(&s->ctx, path, times); in v9fs_co_utimensat()
161 int coroutine_fn v9fs_co_chown(V9fsPDU *pdu, V9fsPath *path, uid_t uid, in v9fs_co_chown() argument
177 err = s->ops->chown(&s->ctx, path, &cred); in v9fs_co_chown()
186 int coroutine_fn v9fs_co_truncate(V9fsPDU *pdu, V9fsPath *path, off_t size) in v9fs_co_truncate() argument
197 err = s->ops->truncate(&s->ctx, path, size); in v9fs_co_truncate()
229 V9fsPath path; in v9fs_co_mknod() local
244 err = s->ops->mknod(&s->ctx, &fidp->path, name->data, &cred); in v9fs_co_mknod()
248 v9fs_path_init(&path); in v9fs_co_mknod()
249 err = v9fs_name_to_path(s, &fidp->path, name->data, &path); in v9fs_co_mknod()
251 err = s->ops->lstat(&s->ctx, &path, stbuf); in v9fs_co_mknod()
256 v9fs_path_free(&path); in v9fs_co_mknod()
263 /* Only works with path name based fid */
264 int coroutine_fn v9fs_co_remove(V9fsPDU *pdu, V9fsPath *path) in v9fs_co_remove() argument
275 err = s->ops->remove(&s->ctx, path->data); in v9fs_co_remove()
284 int coroutine_fn v9fs_co_unlinkat(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_unlinkat() argument
296 err = s->ops->unlinkat(&s->ctx, path, name->data, flags); in v9fs_co_unlinkat()
305 /* Only work with path name based fid */
352 V9fsPath path; in v9fs_co_symlink() local
365 err = s->ops->symlink(&s->ctx, oldpath, &dfidp->path, in v9fs_co_symlink()
370 v9fs_path_init(&path); in v9fs_co_symlink()
371 err = v9fs_name_to_path(s, &dfidp->path, name->data, &path); in v9fs_co_symlink()
373 err = s->ops->lstat(&s->ctx, &path, stbuf); in v9fs_co_symlink()
378 v9fs_path_free(&path); in v9fs_co_symlink()
386 * For path name based fid we don't block. So we can
390 const char *name, V9fsPath *path) in v9fs_co_name_to_path() argument
396 err = s->ops->name_to_path(&s->ctx, dirpath, name, path); in v9fs_co_name_to_path()
406 err = s->ops->name_to_path(&s->ctx, dirpath, name, path); in v9fs_co_name_to_path()