summary refs log tree commit diff stats
path: root/hw/9pfs/9p-synth.h
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2018-02-01 21:21:28 +0100
committerGreg Kurz <groug@kaod.org>2018-02-01 21:21:28 +0100
commit354b86f85f516fecb60185f9c2b8e5933177b300 (patch)
treef11d609b40c4d89c985389d93bee8cb55de5292c /hw/9pfs/9p-synth.h
parent82469aaefea4f8e7a4469c3ec1f680bbf0341c98 (diff)
downloadfocaccia-qemu-354b86f85f516fecb60185f9c2b8e5933177b300.tar.gz
focaccia-qemu-354b86f85f516fecb60185f9c2b8e5933177b300.zip
tests: virtio-9p: add WRITE operation test
Trivial test of a successful write.

Signed-off-by: Greg Kurz <groug@kaod.org>
(groug, handle potential overflow when computing request size,
        add missing g_free(buf),
        backend handles one written byte at a time to validate
        the server doesn't do short-reads)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/9pfs/9p-synth.h')
-rw-r--r--hw/9pfs/9p-synth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/9pfs/9p-synth.h b/hw/9pfs/9p-synth.h
index 2a8d6fd00d..a74032d7bd 100644
--- a/hw/9pfs/9p-synth.h
+++ b/hw/9pfs/9p-synth.h
@@ -53,5 +53,6 @@ int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode,
 
 #define QTEST_V9FS_SYNTH_WALK_FILE "WALK%d"
 #define QTEST_V9FS_SYNTH_LOPEN_FILE "LOPEN"
+#define QTEST_V9FS_SYNTH_WRITE_FILE "WRITE"
 
 #endif