nfs: Fix truncated client owner id without proto type
authorKinglong Mee <kinglongmee@gmail.com>
Mon, 31 Aug 2015 02:53:33 +0000 (10:53 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 1 Sep 2015 22:19:40 +0000 (15:19 -0700)
commit4a70316caef7d158445e672e146eb9f1b8c1aeee
treede26fffc656a0874cc0a04724aa76e357377157e
parent889d94d49a3cbcbc8c8d07208549fa614d33da76
nfs: Fix truncated client owner id without proto type

The length of "Linux NFSv4.0 " is 14, not 10.

Without this patch, I get a truncated client owner id as,
"Linux NFSv4.0 ::1/::1"

With this patch,
"Linux NFSv4.0 ::1/::1 tcp"

Fixes: a319268891 ("nfs: make nfs4_init_nonuniform_client_string use a dynamically allocated buffer")
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c