Some people have kindly tested out my experimental Samba patch
from awhile ago and, low-and-behold, it seems to work (pfft!).
Apparently the following steps are needed:
- get the patch
- patch the current 2.2.2 Samba source
- ensure your system has a /usr/include/linux/xqm.h file
- NB: run "autoconf" (to generate a new Samba "configure" script)
- run "./configure ... --with-quotas ..."
- run "make"
... and that should just about do it.
Buchan & Sylvestre - are you still interested in getting this patch
into Samba, as you suggested in your original mail below?
On Mon, Oct 22, 2001 at 11:59:20AM +0200, Buchan Milne wrote:
> Sylvestre Taburet and I are working on updates to samba-2.2.2 for
> Mandrake 8.1. Since Mandrake 8.1 shipped with XFS, we would like to keep
> working samba/XFS/quotas. In the package of samba-2.2.1a, we applied
> the patch by Nathan Scott:
> We have forwarded the patch to samba developers, but they would prefer a
> patch against current CVS tag SAMBA_2_2.
> Is there someone on this list who can take a look at this? If a working
> patch is available, I will ensure that it makes it into samba cvs.
> (unofortunately, that's all I can offer, since I am no hacker ...)
> Here is a link to the quota.c in samba's cvsweb:
> |----------------Registered Linux User #182071-----------------|
> Buchan Milne Mechanical Engineer, Network Manager
> Cellphone * Work +27 82 472 2231 * +27 21 808 2497 ext 202
> Stellenbosch Automotive Engineering http://www.cae.co.za
On Wed, Oct 24, 2001 at 07:05:21PM +1100, Nathan Scott wrote:
> To try to help out, I've attached a 2.2.2 patch which is probably the
> sort of approach the Samba people will be looking for here. As I don't
> have a clue on how to exercise this code, it is completely untested.
> If you are lucky, it may even compile. ;-)
> Its actually got alot simpler this time, with those changes you've
> foreshadowed, John, as the 2.4.x quota snarfoo is sorted out now in
> smbd/quota.c (see Jeremy's comment in that file, about the spot where
> this change is), and it turned out that this makes things a whole lot
> easier for us.
> Hope this helps.
On Thu, Nov 15, 2001 at 04:23:08PM -0800, gaby@xxxxxxxxxxxxxxxxx wrote:
> Here is the patch for Samba with support for xFS quotas. It works with
> patch -p1 < samba-xfsquot-patch
> in samba dir.
> It's similar to yours but I had to tweak the configure file/script also.
> configure should be invoked with parameter '--with-quotas' (among
> Another thing: the xqm.h header file should be on /usr/include/linux -
> for Red Hat users it is most likely that it has to be copied by hand.
> It seems to work pretty well - if a user exceeds its quota he gets the
> message "disk full".
> Enjoy it and share it with others,