diff options
Diffstat (limited to 'hw/virtio-9p.c')
-rw-r--r-- | hw/virtio-9p.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index 047c7ea4eb..107a66cfa7 100644 --- a/hw/virtio-9p.c +++ b/hw/virtio-9p.c @@ -1025,7 +1025,11 @@ static void v9fs_version(V9fsState *s, V9fsPDU *pdu) pdu_unmarshal(pdu, offset, "ds", &msize, &version); - if (strcmp(version.data, "9P2000.u")) { + if (!strcmp(version.data, "9P2000.u")) { + s->proto_version = V9FS_PROTO_2000U; + } else if (!strcmp(version.data, "9P2000.L")) { + s->proto_version = V9FS_PROTO_2000L; + } else { v9fs_string_sprintf(&version, "unknown"); } |