net/9p: Make 9P2000.L the default protocol for 9p file system
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.
Signed-off-by Aneesh Kumar K.V <[email protected]>
--- net/9p/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/9p/client.c +1 -1
@@ -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
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
Signed-off-by Aneesh Kumar K.V <[email protected]>
--- net/9p/client.c | 3 +++ 1 file changed, 3 insertions(+)
net/9p/client.c +3 -0
@@ -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