path: root/api
diff options
authorBipin Kunal <>2016-06-10 17:03:35 +0530
committerNiels de Vos <>2016-07-03 04:15:35 -0700
commit6a1559ff8057e5c2a992a990cfb630932e6928d2 (patch)
treed5711061b7af7667f5078ab8f586662cd786067c /api
parente6d45abffb861570f9591811c77f0d3d8316f637 (diff)
nfs: build exportlist with multiple groupnodes
The EXPORT procedure of the MOUNT protocol does not correctly create structures for the 'groupnodes' in the reply. Each 'groupnode' should be a single entry in the 'nfs.rpc-auth-allow' volume option. Because the value is handled as a single string, the encoding of the groupnode->gr_name fails when the value of the volume option is longer than 255 characters. In the error case, encoding the EXPORTS reply fails, and the waiting 'showmount' command will not receive a reply and times out. Splitting the allowed entries and creating a groupnode for each one prevents the too long ->gr_name. This is following the structures for the EXPORTS reply in the MOUNT protocol more correctly as well. Note that the contents of ->gr_name is expected to be server dependent. This is backport of below mainline fix - Change-Id: Ibbabad581cc9aa00feb80fbbc851a1b10b28383d BUG: 1343290 Signed-off-by: Niels de Vos <> Signed-off-by: Bipin Kunal <> Reviewed-on: Smoke: Gluster Build System <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions