On Thu, 2007-08-02 at 17:34 +0100, Mike Brudenell wrote: > I've just tried #including the rquota_cdr.c file produced by running > rpcgen on the rquota.x file (as in the code I sent out a few days ago). > > That compiled and runs OK, and successfully returns a storage when > queries with the GETQUOTAROOT command: > > a02 getquotaroot inbox > * QUOTAROOT "inbox" "pmb1" > * QUOTA "pmb1" (STORAGE 72970240 104857600) > a02 OK Getquotaroot completed. > > *BUT* the units returned are not correct: they appear to be coming > back as bytes when the RFC says that they should be in units of 1024 > octets:
That's a difference between v1.0 and v1.1. v1.1 divides it by 1024 later. > The mystery of the missing xdr_getquota_args() still needs sorting > properly though. It is a bit weird why I don't get that error, because I don't see it defined anywhere. So I suppose it has to use rpcgen after all to create the .c file. Want to send a patch? :)
signature.asc
Description: This is a digitally signed message part