[OpenAFS-devel] Adding an "estimate" function to vlserver
Mitch Collinsworth
mitch@ccmr.cornell.edu
Fri, 4 Apr 2003 10:47:47 -0500 (EST)
On Thu, 3 Apr 2003, Joseph V Moss wrote:
> If you're modifying vos to add a new command, couldn't you just code up
> the change so that 'vos dump -estimate' sends the new RPC rather than
> a modified version of the existing dump RPC call?
Good question. And exactly what I asked when this dilema was brought
to my attention. It turns out that because of the way the code is
currently structured, doing this would require significant restructuring.
The RPC opcodes and parameters are rather strictly tied to the vos
command suite syntax. A bit hard to explain in words but if you look
at the code the problem is immediately obvious. We didn't look at
them but my guess is the other command suites are probably coded
similarly. I'm not really interested in untangling the coding style,
just adding one new feature.
> Or as a different possible interface, how about 'vos examine -dumpsize' to
> get it to show the size you're looking for rather than the one it shows currently.
This would have the same backwards compatibility problem as
'vos dump -estimate'.
-Mitch