nfsd: dynamically skip encoded fattr bitmap in _nfsd4_verify
authorBenny Halevy <bhalevy@panasas.com>
Fri, 3 Apr 2009 05:29:08 +0000 (08:29 +0300)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 4 Apr 2009 00:41:22 +0000 (17:41 -0700)
commit95ec28cda323104bbff64fc7ec8ee4c9042e51fa
treebde294959fdf288cd69e0f6f33570f62ec57dcbf
parentc0d6fc8a2d55a8235c301aeb6d5254d5992895d1
nfsd: dynamically skip encoded fattr bitmap in _nfsd4_verify

_nfsd4_verify currently skips 3 words from the encoded buffer begining.
With support for 3-word attr bitmaps in nfsd41, nfsd4_encode_fattr
may encode 1, 2, or 3 words, and not always 2 as it used to be, hence
we need to find out where to skip using the encoded bitmap length.

Note: This patch may be applied over pre-nfsd41 nfsd.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4proc.c