>
> Kernel version affected: 2.6.37-rc4
>
> Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
>
> ---
> fs/nfs/super.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/fs/nfs/super.c b/fs/nfs/super.c
> index 6d6e21d..fd4cac8 100644
> --- a/fs/nfs/super.c
> +++ b/fs/nfs/super.c
> @@ -681,7 +681,8 @@ static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss,
>
> if (nfss->mountd_version || showdefaults)
> seq_printf(m, ",mountvers=%u", nfss->mountd_version);
> - if (nfss->mountd_port || showdefaults)
> + if (nfss->mountd_port != (unsigned short)NFS_UNSPEC_PORT ||
> + showdefaults)
> seq_printf(m, ",mountport=%u", nfss->mountd_port);
>
> nfs_show_mountd_netid(m, nfss, showdefaults);
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to
majordomo@vger.kernel.org
> More majordomo info at
http://vger.kernel.org/majordomo-info.html