nfsd: return better errors to exportfs
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 13 Sep 2013 15:08:45 +0000 (11:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 19:11:49 +0000 (11:11 -0800)
commit8b7330f9057949e8c5df82df8a76068d0129e778
tree2d98e4197fa082e2291439c9f089e6e6d596a3a7
parent1311157d8407d16b8543c2286f0e95251ca04fe8
nfsd: return better errors to exportfs

commit 427d6c6646d868fbd3094e7e2e1644d480cd9204 upstream.

Someone noticed exportfs happily accepted exports that would later be
rejected when mountd tried to give them to the kernel.  Fix this.

This is a regression from 4c1e1b34d5c800ad3ac9a7e2805b0bea70ad2278
"nfsd: Store ex_anon_uid and ex_anon_gid as kuids and kgids".

Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Reported-by: Yin.JianHong <jiyin@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/export.c