Skip to contentSkip to conversation

net/9p: Make 9P2000.L the default protocol for 9p file system

PATCH New Aneesh Kumar K.V 1 participant 2 messages May 20, 2013 9P file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 net/9p: Make 9P2000.L the default protocol for 9p file system

From: "Aneesh Kumar K.V" <[email protected]>

If we dont' specify a protocol version default to 9P2000.L. 9P2000.L have better support for posix semantic and is where all the recent development is happening.

---
 net/9p/client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/9p/client.c +1 -1
index 8eb7542..812a4cd 100644
@@ -127,7 +127,7 @@ static int parse_opts(char *opts, struct p9_client *clnt)
 	char *s;
 	int ret = 0;
 
-	clnt->proto_version = p9_proto_2000u;
+	clnt->proto_version = p9_proto_2000L;
 	clnt->msize = 8192;
 
 	if (!opts)
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 2/2 net/9p: Use virtio transpart as the default transport

From: "Aneesh Kumar K.V" <[email protected]>

Make the default 9p experience better by defaulting to virtio transport if present. These days most of the users are using 9p in a virtualized setup

---
 net/9p/client.c | 3 +++
 1 file changed, 3 insertions(+)
net/9p/client.c +3 -0
index 812a4cd..5e94dab 100644
@@ -1015,6 +1015,9 @@ struct p9_client *p9_client_create(const char *dev_name, char *options)
 		goto destroy_tagpool;
 
 	if (!clnt->trans_mod)
+		clnt->trans_mod = v9fs_get_trans_by_name("virtio");
+
+	if (!clnt->trans_mod)
 		clnt->trans_mod = v9fs_get_default_trans();
 
 	if (clnt->trans_mod == NULL) {
Signature · 1 line
1.8.1.2