Revision a6568fe2 hw/virtio-9p-local.c
b/hw/virtio-9p-local.c | ||
---|---|---|
86 | 86 |
return closedir(dir); |
87 | 87 |
} |
88 | 88 |
|
89 |
static int local_open(FsContext *ctx, const char *path, int flags) |
|
90 |
{ |
|
91 |
return open(rpath(ctx, path), flags); |
|
92 |
} |
|
93 |
|
|
94 |
static DIR *local_opendir(FsContext *ctx, const char *path) |
|
95 |
{ |
|
96 |
return opendir(rpath(ctx, path)); |
|
97 |
} |
|
98 |
|
|
89 | 99 |
FileOperations local_ops = { |
90 | 100 |
.lstat = local_lstat, |
91 | 101 |
.setuid = local_setuid, |
92 | 102 |
.readlink = local_readlink, |
93 | 103 |
.close = local_close, |
94 | 104 |
.closedir = local_closedir, |
105 |
.open = local_open, |
|
106 |
.opendir = local_opendir, |
|
95 | 107 |
}; |
Also available in: Unified diff