]> rtime.felk.cvut.cz Git - linux-imx.git/commit
nfsd: add IPv6 addr escaping to fs_location hosts
authorWeston Andros Adamson <dros@netapp.com>
Tue, 24 Apr 2012 15:07:59 +0000 (11:07 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jun 2012 00:29:38 +0000 (20:29 -0400)
commite7a0444aef4a1649bc155fd5c6d6ab3f8bdc88ab
treee3afdeb61ecb045dd95c371f4d6cc89246d0663b
parent45eaa1c1a16122a98bf995c004c23806759d2e5f
nfsd: add IPv6 addr escaping to fs_location hosts

The fs_location->hosts list is split on colons, but this doesn't work when
IPv6 addresses are used (they contain colons).
This patch adds the function nfsd4_encode_components_esc() to
allow the caller to specify escape characters when splitting on 'sep'.
In order to fix referrals, this patch must be used with the mountd patch
that similarly fixes IPv6 [] escaping.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c