/openbmc/qemu/fsdev/ |
H A D | file-op-9p.h | 41 typedef struct V9fsPath V9fsPath; typedef 44 int (*get_st_gen)(FsContext *, V9fsPath *, mode_t, uint64_t *); 112 struct V9fsPath { struct 116 P9ARRAY_DECLARE_TYPE(V9fsPath); argument 126 int (*lstat)(FsContext *, V9fsPath *, struct stat *); 127 ssize_t (*readlink)(FsContext *, V9fsPath *, char *, size_t); 128 int (*chmod)(FsContext *, V9fsPath *, FsCred *); 129 int (*chown)(FsContext *, V9fsPath *, FsCred *); 130 int (*mknod)(FsContext *, V9fsPath *, const char *, FsCred *); 131 int (*utimensat)(FsContext *, V9fsPath *, const struct timespec *); [all …]
|
/openbmc/qemu/hw/9pfs/ |
H A D | coth.h | 62 int coroutine_fn v9fs_co_readlink(V9fsPDU *, V9fsPath *, V9fsString *); 70 int coroutine_fn v9fs_co_statfs(V9fsPDU *, V9fsPath *, struct statfs *); 71 int coroutine_fn v9fs_co_lstat(V9fsPDU *, V9fsPath *, struct stat *); 72 int coroutine_fn v9fs_co_chmod(V9fsPDU *, V9fsPath *, mode_t); 73 int coroutine_fn v9fs_co_utimensat(V9fsPDU *, V9fsPath *, struct timespec [2]); 74 int coroutine_fn v9fs_co_chown(V9fsPDU *, V9fsPath *, uid_t, gid_t); 75 int coroutine_fn v9fs_co_truncate(V9fsPDU *, V9fsPath *, off_t); 76 int coroutine_fn v9fs_co_llistxattr(V9fsPDU *, V9fsPath *, void *, size_t); 77 int coroutine_fn v9fs_co_lgetxattr(V9fsPDU *, V9fsPath *, 83 int coroutine_fn v9fs_co_remove(V9fsPDU *, V9fsPath *); [all …]
|
H A D | cofs.c | 25 static ssize_t __readlink(V9fsState *s, V9fsPath *path, V9fsString *buf) in __readlink() 57 int coroutine_fn v9fs_co_readlink(V9fsPDU *pdu, V9fsPath *path, V9fsString *buf) in v9fs_co_readlink() 77 int coroutine_fn v9fs_co_statfs(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_statfs() 98 int coroutine_fn v9fs_co_chmod(V9fsPDU *pdu, V9fsPath *path, mode_t mode) in v9fs_co_chmod() 121 int coroutine_fn v9fs_co_utimensat(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_utimensat() 142 int coroutine_fn v9fs_co_chown(V9fsPDU *pdu, V9fsPath *path, uid_t uid, in v9fs_co_chown() 167 int coroutine_fn v9fs_co_truncate(V9fsPDU *pdu, V9fsPath *path, off_t size) in v9fs_co_truncate() 192 V9fsPath path; in v9fs_co_mknod() 227 int coroutine_fn v9fs_co_remove(V9fsPDU *pdu, V9fsPath *path) in v9fs_co_remove() 247 int coroutine_fn v9fs_co_unlinkat(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_unlinkat() [all …]
|
H A D | 9p-synth.c | 157 V9fsPath *fs_path, struct stat *stbuf) in synth_lstat() 174 V9fsPath *fs_path, V9fsFidOpenState *fs) in synth_opendir() 273 static int synth_open(FsContext *ctx, V9fsPath *fs_path, in synth_open() 286 static int synth_open2(FsContext *fs_ctx, V9fsPath *dir_path, in synth_open2() 353 static int synth_truncate(FsContext *ctx, V9fsPath *path, off_t offset) in synth_truncate() 359 static int synth_chmod(FsContext *fs_ctx, V9fsPath *path, FsCred *credp) in synth_chmod() 365 static int synth_mknod(FsContext *fs_ctx, V9fsPath *path, in synth_mknod() 372 static int synth_mkdir(FsContext *fs_ctx, V9fsPath *path, in synth_mkdir() 379 static ssize_t synth_readlink(FsContext *fs_ctx, V9fsPath *path, in synth_readlink() 387 V9fsPath *newpath, const char *buf, FsCred *credp) in synth_symlink() [all …]
|
H A D | 9p.h | 275 V9fsPath path; 456 void v9fs_path_init(V9fsPath *path); 457 void v9fs_path_free(V9fsPath *path); 458 void v9fs_path_sprintf(V9fsPath *path, const char *fmt, ...); 459 void v9fs_path_copy(V9fsPath *dst, const V9fsPath *src); 461 int v9fs_name_to_path(V9fsState *s, V9fsPath *dirpath, 462 const char *name, V9fsPath *path);
|
H A D | 9p-local.c | 185 static int local_lstat(FsContext *fs_ctx, V9fsPath *fs_path, struct stat *stbuf) in local_lstat() 460 static ssize_t local_readlink(FsContext *fs_ctx, V9fsPath *fs_path, in local_readlink() 505 static int local_open(FsContext *ctx, V9fsPath *fs_path, in local_open() 519 V9fsPath *fs_path, V9fsFidOpenState *fs) in local_opendir() 636 static int local_chmod(FsContext *fs_ctx, V9fsPath *fs_path, FsCred *credp) in local_chmod() 664 static int local_mknod(FsContext *fs_ctx, V9fsPath *dir_path, in local_mknod() 716 static int local_mkdir(FsContext *fs_ctx, V9fsPath *dir_path, in local_mkdir() 814 static int local_open2(FsContext *fs_ctx, V9fsPath *dir_path, const char *name, in local_open2() 880 V9fsPath *dir_path, const char *name, FsCred *credp) in local_symlink() 955 static int local_link(FsContext *ctx, V9fsPath *oldpath, in local_link() [all …]
|
H A D | coxattr.c | 25 int coroutine_fn v9fs_co_llistxattr(V9fsPDU *pdu, V9fsPath *path, void *value, in v9fs_co_llistxattr() 46 int coroutine_fn v9fs_co_lgetxattr(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_lgetxattr() 70 int coroutine_fn v9fs_co_lsetxattr(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_lsetxattr() 94 int coroutine_fn v9fs_co_lremovexattr(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_lremovexattr()
|
H A D | cofile.c | 25 int coroutine_fn v9fs_co_st_gen(V9fsPDU *pdu, V9fsPath *path, mode_t st_mode, in v9fs_co_st_gen() 49 int coroutine_fn v9fs_co_lstat(V9fsPDU *pdu, V9fsPath *path, struct stat *stbuf) in v9fs_co_lstat() 136 V9fsPath path; in v9fs_co_open2()
|
H A D | 9p.c | 56 P9ARRAY_DEFINE_TYPE(V9fsPath, v9fs_path_free); 190 void v9fs_path_init(V9fsPath *path) in v9fs_path_init() 196 void v9fs_path_free(V9fsPath *path) in v9fs_path_free() 205 v9fs_path_sprintf(V9fsPath *path, const char *fmt, ...) in v9fs_path_sprintf() 217 void v9fs_path_copy(V9fsPath *dst, const V9fsPath *src) in v9fs_path_copy() 224 int v9fs_name_to_path(V9fsState *s, V9fsPath *dirpath, in v9fs_name_to_path() 225 const char *name, V9fsPath *path) in v9fs_name_to_path() 241 static int v9fs_path_is_ancestor(V9fsPath *s1, V9fsPath *s2) in v9fs_path_is_ancestor() 520 static int coroutine_fn v9fs_mark_fids_unreclaim(V9fsPDU *pdu, V9fsPath *path) in v9fs_mark_fids_unreclaim() 1226 static int coroutine_fn stat_to_v9stat(V9fsPDU *pdu, V9fsPath *path, in stat_to_v9stat() [all …]
|
H A D | codir.c | 82 V9fsPath path; in do_readdir_many() 281 V9fsPath path; in v9fs_co_mkdir()
|