diff options
author | Bipin Kunal <bkunal@redhat.com> | 2016-06-07 18:30:16 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2016-06-09 11:40:25 -0700 |
commit | 3bd4b1529817d4ce40c2b9654044e6230cbf7233 (patch) | |
tree | b095f2ed5e5f14992cec6f977d9ca39d672f88e7 /extras/run-gluster.tmpfiles.in | |
parent | ab88bad8fe40bd9a9106b02857abfdc51a3284cd (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.
Change-Id: Ibbabad581cc9aa00feb80fbbc851a1b10b28383d
BUG: 1343286
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/14667
Smoke: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: bipin kunal <kunalbipin@gmail.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: jiffin tony Thottan <jthottan@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'extras/run-gluster.tmpfiles.in')
0 files changed, 0 insertions, 0 deletions