NFS quota support for FreeBSD

Stefan (metze) Metzmacher metze at samba.org
Wed Jun 2 06:59:41 GMT 2004


Stefan (metze) Metzmacher schrieb:

> Jeremy, Jerry,
> 
> any objectsions if I apply this?
> I can't test it here and I don't want to break the next release:-)
> But the patch looks good and it only takes effect when using --with-quotas
> 
>> I seem to have Samba 3.0.4 on FreeBSD properly fetching quota information
>> for NFS filesystems. The code that does the work (nfs_quotas() and 
>> friends)
>> was taken from the Sun implementation so I can't take much credit. :-)
>>
>> Patch attached and suggestions welcome.
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> --- smbd/quotas.c.orig    Sun May 30 23:31:06 2004
>> +++ smbd/quotas.c    Sun May 30 23:44:35 2004
>> @@ -933,6 +933,176 @@
>>  #include <devnm.h>
>>  #endif
>>  
>> +#if defined(__FreeBSD__)
>> +
>> +#include <rpc/rpc.h>
>> +#include <rpc/types.h>
>> +#include <rpcsvc/rquota.h>
>> +#include <rpc/nettype.h>
>> +#include <rpc/xdr.h>

Dan,

is it correct that you don't need to link to -lrpcsvc, like on linux?


-- 
metze

Stefan Metzmacher <metze at samba.org> www.samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20040602/1681a3a1/signature.bin


More information about the samba-technical mailing list