Skip to content

Commit

Permalink
9p: Fix v9fs show_options
Browse files Browse the repository at this point in the history
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: 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 Aug 17, 2009
1 parent 02bc356 commit 4f40383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/9p/vfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4f40383

Please sign in to comment.