xfs
[Top] [All Lists]

Re: Samba 2.2.2 and XFS quotas

To: linux-xfs@xxxxxxxxxxx
Subject: Re: Samba 2.2.2 and XFS quotas
From: Nathan Scott <nathans@xxxxxxx>
Date: Fri, 16 Nov 2001 14:22:54 +1100
Cc: Buchan Milne <bgmilne@xxxxxxxxx>, Sylvestre Taburet <staburet@xxxxxxxxxxxxxxxx>
In-reply-to: <20011024190521.M563765@xxxxxxxxxxxxxxxxxxxxxxxx>; from nathans@xxxxxxx on Wed, Oct 24, 2001 at 07:05:21PM +1100
References: <2.1-439792-249-D-OEWW@xxxxxxxxxxxxxxxxxxx> <20011024190521.M563765@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
hi all,

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
  http://oss.sgi.com/projects/xfs/mail_archive/0110/msg00818.html
- 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?

cheers.


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:
> (http://marc.theaimsgroup.com/?l=linux-xfs&m=100002981924172&w=2).
>
> 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:
> http://pserver.samba.org/cgi-bin/cvsweb/samba/source/smbd/quotas.c?only_with_tag=SAMBA_2_2
>
> Regards,
> Buchan
>
> --
> |----------------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.
> 
> cheers.
> 
> -- 
> Nathan
> 

On Thu, Nov 15, 2001 at 04:23:08PM -0800, gaby@xxxxxxxxxxxxxxxxx wrote:
>
> Nathan,
>
> 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
> others).
>
> 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,
> Gaby
>

-- 
Nathan


<Prev in Thread] Current Thread [Next in Thread>
  • Re: Samba 2.2.2 and XFS quotas, Nathan Scott <=