nfsd: return better errors to exportfs
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 13 Sep 2013 15:08:45 +0000 (11:08 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 29 Oct 2013 21:45:30 +0000 (17:45 -0400)
commit427d6c6646d868fbd3094e7e2e1644d480cd9204
tree78a6becf2230156f9e75dab083747b3a605f6741
parent49e7372063a220651b4f12fa46113559533cafee
nfsd: return better errors to exportfs

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>
Cc: stable@vger.kernel.org
Reported-by: Yin.JianHong <jiyin@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/export.c