Skip to content

Commit

Permalink
9p: default 9p transport module fix
Browse files Browse the repository at this point in the history
The default 9p transport module is not chosen unless an option parameter (any)
is passed to mount, which thus returns a ENOPROTOSUPPORT. This fix moves the
check out of parse_opts into p9_client_create.

Signed-off-by: Abhishek Kulkarni <adkulkar@umail.iu.edu>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
  • Loading branch information
Abhishek Kulkarni authored and Eric Van Hensbergen committed Jul 14, 2009
1 parent 4b0a840 commit a17d172
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ static int parse_opts(char *opts, struct p9_client *clnt)
}
}

if (!clnt->trans_mod)
clnt->trans_mod = v9fs_get_default_trans();

kfree(options);
return ret;
}
Expand Down Expand Up @@ -689,6 +686,9 @@ struct p9_client *p9_client_create(const char *dev_name, char *options)
if (err < 0)
goto error;

if (!clnt->trans_mod)
clnt->trans_mod = v9fs_get_default_trans();

if (clnt->trans_mod == NULL) {
err = -EPROTONOSUPPORT;
P9_DPRINTK(P9_DEBUG_ERROR,
Expand Down

0 comments on commit a17d172

Please sign in to comment.