diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-04-29 17:44:58 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-05-03 12:17:39 -0500 |
commit | 8449360cbde906bb36ca2181d3723bae2fd10742 (patch) | |
tree | 34a5201925b8b9d83716f7d76a085828654f00ce /hw/virtio-9p-local.c | |
parent | bbd5697b8ea7e8795e83d3550cd1a11077c57fd4 (diff) |
virtio-9p: Add P9_TWRITE support
Implement P9_TWRITE support.
This gets write to file to work
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>
Diffstat (limited to 'hw/virtio-9p-local.c')
-rw-r--r-- | hw/virtio-9p-local.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/virtio-9p-local.c b/hw/virtio-9p-local.c index 81d1971040..87aeba83f1 100644 --- a/hw/virtio-9p-local.c +++ b/hw/virtio-9p-local.c @@ -127,6 +127,12 @@ static off_t local_lseek(FsContext *ctx, int fd, off_t offset, int whence) return lseek(fd, offset, whence); } +static ssize_t local_writev(FsContext *ctx, int fd, const struct iovec *iov, + int iovcnt) +{ + return writev(fd, iov, iovcnt); +} + FileOperations local_ops = { .lstat = local_lstat, .setuid = local_setuid, @@ -141,4 +147,5 @@ FileOperations local_ops = { .seekdir = local_seekdir, .readv = local_readv, .lseek = local_lseek, + .writev = local_writev, }; |