mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
virtio-9p: Add P9_TOPEN support.
Implement P9_TOPEN support. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
ff5e54c987
commit
a6568fe27f
3 changed files with 163 additions and 6 deletions
|
@ -86,10 +86,22 @@ static int local_closedir(FsContext *ctx, DIR *dir)
|
|||
return closedir(dir);
|
||||
}
|
||||
|
||||
static int local_open(FsContext *ctx, const char *path, int flags)
|
||||
{
|
||||
return open(rpath(ctx, path), flags);
|
||||
}
|
||||
|
||||
static DIR *local_opendir(FsContext *ctx, const char *path)
|
||||
{
|
||||
return opendir(rpath(ctx, path));
|
||||
}
|
||||
|
||||
FileOperations local_ops = {
|
||||
.lstat = local_lstat,
|
||||
.setuid = local_setuid,
|
||||
.readlink = local_readlink,
|
||||
.close = local_close,
|
||||
.closedir = local_closedir,
|
||||
.open = local_open,
|
||||
.opendir = local_opendir,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue