net/9p: fix virtio transport to correctly update status on connect
authorEric Van Hensbergen <ericvh@gmail.com>
Sat, 16 Jan 2010 00:54:03 +0000 (18:54 -0600)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 8 Feb 2010 20:13:30 +0000 (14:13 -0600)
The 9p virtio transport was not updating its connection status correctly
preventing it from being able to mount the server.

Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
net/9p/trans_virtio.c

index ea1e3da..67c4bc7 100644 (file)
@@ -311,6 +311,7 @@ p9_virtio_create(struct p9_client *client, const char *devname, char *args)
        }
 
        client->trans = (void *)chan;
+       client->status = Connected;
        chan->client = client;
 
        return 0;