9p: re-enable mount time debug option
During reorganization, the mount time debug option was removed in favor of module-load-time parameters. However, the mount time option is still a useful for feature during debug and for user-fault isolation when the module is compiled into the kernel. Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
This commit is contained in:
parent
9523a841b1
commit
9e2f6688c0
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
/* Options that take integer arguments */
|
/* Options that take integer arguments */
|
||||||
Opt_port, Opt_msize, Opt_uid, Opt_gid, Opt_afid,
|
Opt_debug, Opt_port, Opt_msize, Opt_uid, Opt_gid, Opt_afid,
|
||||||
Opt_rfdno, Opt_wfdno,
|
Opt_rfdno, Opt_wfdno,
|
||||||
/* String options */
|
/* String options */
|
||||||
Opt_uname, Opt_remotename,
|
Opt_uname, Opt_remotename,
|
||||||
|
@ -56,6 +56,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
static match_table_t tokens = {
|
static match_table_t tokens = {
|
||||||
|
{Opt_debug, "debug=%x"},
|
||||||
{Opt_port, "port=%u"},
|
{Opt_port, "port=%u"},
|
||||||
{Opt_msize, "msize=%u"},
|
{Opt_msize, "msize=%u"},
|
||||||
{Opt_uid, "uid=%u"},
|
{Opt_uid, "uid=%u"},
|
||||||
|
@ -128,6 +129,10 @@ static void v9fs_parse_options(char *options, struct v9fs_session_info *v9ses)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
switch (token) {
|
switch (token) {
|
||||||
|
case Opt_debug:
|
||||||
|
v9ses->debug = option;
|
||||||
|
p9_debug_level = option;
|
||||||
|
break;
|
||||||
case Opt_port:
|
case Opt_port:
|
||||||
v9ses->port = option;
|
v9ses->port = option;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -217,7 +217,7 @@ static int v9fs_show_options(struct seq_file *m, struct vfsmount *mnt)
|
||||||
struct v9fs_session_info *v9ses = mnt->mnt_sb->s_fs_info;
|
struct v9fs_session_info *v9ses = mnt->mnt_sb->s_fs_info;
|
||||||
|
|
||||||
if (v9ses->debug != 0)
|
if (v9ses->debug != 0)
|
||||||
seq_printf(m, ",debug=%u", v9ses->debug);
|
seq_printf(m, ",debug=%x", v9ses->debug);
|
||||||
if (v9ses->port != V9FS_PORT)
|
if (v9ses->port != V9FS_PORT)
|
||||||
seq_printf(m, ",port=%u", v9ses->port);
|
seq_printf(m, ",port=%u", v9ses->port);
|
||||||
if (v9ses->maxdata != 9000)
|
if (v9ses->maxdata != 9000)
|
||||||
|
|
Loading…
Reference in New Issue