Attempt to fix CForeign moredata behaviour
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Sat, 26 Sep 2009 09:06:27 +0000 (10:06 +0100)
committerDerrick Brashear <shadow|account-1000005@unknown>
Sat, 26 Sep 2009 09:16:04 +0000 (02:16 -0700)
commitbc6559d62c21ee046c4082aba282097a8c1de9ac
tree53d06cda2d700fc29f62ce8bab7165e5ded9aa86
parent5d765426e597c60228e66bddaa21bf2453c74a85
Attempt to fix CForeign moredata behaviour

The fetchstore patches changed the behaviour of the multiple chunk handling
that's used in FetchData when the vnode's CForeign bit is set. In the original
code, the data would be read as (length, payload) chunks. The new code does
(length, length, payload), which corrupts the incoming data.

This patch restores the original control flow.

Reviewed-on: http://gerrit.openafs.org/498
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_fetchstore.c