nfsd4: better error return to indicate SSV non-support
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 12 Apr 2013 22:10:56 +0000 (18:10 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 26 Apr 2013 20:18:15 +0000 (16:18 -0400)
As 4.1 becomes less experimental and SSV still isn't implemented, we
have to admit it's not going to be, and return some sensible error
rather than just saying "our server's broken".  Discussion in the ietf
group hasn't turned up any objections to using NFS4ERR_ENC_ALG_UNSUPP
for that purpose.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c

index e39bf5381bca2c78e3cad61fcc750c653f95248a..a964a1761077e91e1d2b40d3bc657fd1d50c05bb 100644 (file)
@@ -1651,6 +1651,7 @@ nfsd4_exchange_id(struct svc_rqst *rqstp,
        default:                                /* checked by xdr code */
                WARN_ON_ONCE(1);
        case SP4_SSV:
+               return nfserr_encr_alg_unsupp;
        case SP4_MACH_CRED:
                return nfserr_serverfault;      /* no excuse :-/ */
        }