Skip to content

Commit 32b34fa

Browse files
mgrimesixchucklever
authored andcommitted
nfsd: Add quotes to client info 'callback address'
The 'callback address' in client_info_show is output without quotes causing yaml parsers to fail on processing IPv6 addresses. Adding quotes to 'callback address' also matches that used by the 'address' field. Signed-off-by: Mark Grimes <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: NeilBrown <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent c4de97f commit 32b34fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/nfs4state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,7 @@ static int client_info_show(struct seq_file *m, void *v)
26922692
clp->cl_nii_time.tv_sec, clp->cl_nii_time.tv_nsec);
26932693
}
26942694
seq_printf(m, "callback state: %s\n", cb_state2str(clp->cl_cb_state));
2695-
seq_printf(m, "callback address: %pISpc\n", &clp->cl_cb_conn.cb_addr);
2695+
seq_printf(m, "callback address: \"%pISpc\"\n", &clp->cl_cb_conn.cb_addr);
26962696
seq_printf(m, "admin-revoked states: %d\n",
26972697
atomic_read(&clp->cl_admin_revoked));
26982698
drop_client(clp);

0 commit comments

Comments
 (0)