Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f403832 authored by Abhishek Kulkarni's avatar Abhishek Kulkarni Committed by Eric Van Hensbergen
Browse files

9p: Fix v9fs show_options



Add the delimiter ',' before the options when they are passed
and check if no option parameters are passed to prevent displaying
NULL in /proc/mounts.

Signed-off-by: default avatarAbhishek Kulkarni <adkulkar@umail.iu.edu>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent 02bc3567
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -220,8 +220,8 @@ static void v9fs_kill_super(struct super_block *s)
static int v9fs_show_options(struct seq_file *m, struct vfsmount *mnt)
{
	struct v9fs_session_info *v9ses = mnt->mnt_sb->s_fs_info;

	seq_printf(m, "%s", v9ses->options);
	if (v9ses->options != NULL)
		seq_printf(m, ",%s", v9ses->options);
	return 0;
}