Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186123
b: refs/heads/master
c: c5a7697
h: refs/heads/master
i:
  186121: 9fc5e66
  186119: 28c2d10
v: v3
  • Loading branch information
Sripathi Kodi authored and Eric Van Hensbergen committed Mar 5, 2010
1 parent 4712c77 commit 3bc05b3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 342fee1d5c7dfa05f4e14ec1e583df4553b09776
refs/heads/master: c5a7697da9775f7a0e122fa23180becc311772d1
25 changes: 22 additions & 3 deletions trunk/net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,25 @@ int p9_client_version(struct p9_client *c)

P9_DPRINTK(P9_DEBUG_9P, ">>> TVERSION msize %d protocol %d\n",
c->msize, c->proto_version);
req = p9_client_rpc(c, P9_TVERSION, "ds", c->msize,
p9_is_proto_dotu(c) ? "9P2000.u" : "9P2000");

switch (c->proto_version) {
case p9_proto_2010L:
req = p9_client_rpc(c, P9_TVERSION, "ds",
c->msize, "9P2010.L");
break;
case p9_proto_2000u:
req = p9_client_rpc(c, P9_TVERSION, "ds",
c->msize, "9P2000.u");
break;
case p9_proto_legacy:
req = p9_client_rpc(c, P9_TVERSION, "ds",
c->msize, "9P2000");
break;
default:
return -EINVAL;
break;
}

if (IS_ERR(req))
return PTR_ERR(req);

Expand All @@ -683,7 +700,9 @@ int p9_client_version(struct p9_client *c)
}

P9_DPRINTK(P9_DEBUG_9P, "<<< RVERSION msize %d %s\n", msize, version);
if (!strncmp(version, "9P2000.u", 8))
if (!strncmp(version, "9P2010.L", 8))
c->proto_version = p9_proto_2010L;
else if (!strncmp(version, "9P2000.u", 8))
c->proto_version = p9_proto_2000u;
else if (!strncmp(version, "9P2000", 6))
c->proto_version = p9_proto_legacy;
Expand Down

0 comments on commit 3bc05b3

Please sign in to comment.