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:55:25 +0000 (14:55 -0700)
commit2bddaa01c5da9aa6083218f0f4c991a12a8f8054
treee0a5112cff7a4f8bfc39df23b76fcaf1e20ac5df
parentf40df5f22298327926688dce132c64351a029d4b
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