NFSD: provide encode routine for OP_OPENATTR
authorBenny Halevy <bhalevy@panasas.com>
Wed, 4 Mar 2009 21:05:35 +0000 (23:05 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 Mar 2009 21:59:55 +0000 (14:59 -0700)
commitf79630367ac562edfe667cdd8f964c56092e6b0a
treeeeda61e6e8770e88edeb9fbc132b95cebbb84861
parentf2b10ab15c8d062ccbfd1913a8261bc475a2fb59
NFSD: provide encode routine for OP_OPENATTR

commit 84f09f46b4ee9e4e9b6381f8af31817516d2091b upstream.

Although this operation is unsupported by our implementation
we still need to provide an encode routine for it to
merely encode its (error) status back in the compound reply.

Thanks for Bill Baker at sun.com for testing with the Sun
OpenSolaris' client, finding, and reporting this bug at
Connectathon 2009.

This bug was introduced in 2.6.27

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfsd/nfs4xdr.c