xfs
[Top] [All Lists]

Re: xFS problems (fwd)

To: grican@xxxxxxxxxxxxxxxxx
Subject: Re: xFS problems (fwd)
From: Nathan Scott <nathans@xxxxxxx>
Date: Thu, 15 Nov 2001 10:12:13 +1100
Cc: Steve Soto <ssoto@xxxxxxxxxxxxxxxxx>, lgee@xxxxxxxxxxxxxxxxx, Jan Kara <jack@xxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <20011114233406.B25894@atrey.karlin.mff.cuni.cz>; from jack@ucw.cz on Wed, Nov 14, 2001 at 11:34:06PM +0100
References: <20011114233406.B25894@atrey.karlin.mff.cuni.cz>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
hi there,

On Wed, Nov 14, 2001 at 11:34:06PM +0100, Jan Kara wrote:
>   Hi Nathan,
> 
>   I think you'll be more helpful then for me :).
> 

Thanks Jan - <mailto:linux-xfs@xxxxxxxxxxx> doesn't look like a
valid address, so I guess this bounced before reaching the list
or else I've been asleep and missed it.

> To: <jack@xxxxxxx>, <mailto:linux-xfs@xxxxxxxxxxx>
> Cc: "Steve Soto" <ssoto@xxxxxxxxxxxxxxxxx>, <lgee@xxxxxxxxxxxxxxxxx>
> Subject: xFS problems
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook Express 5.00.2919.6700
> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
> 
> Hello,
> 
> I am trying to use Disk Quotas on xFS and I have some problems that I would 
> like to address.
> 
> First there is a problem with header files: in RedHat /usr/include/linux is 
> not a [symbolic] link to /usr/src/linux[-x.y.zz]/include/linux anymore, it is 
> a separate directory so after one applies the xFS patch one cannot find the 
> xFS header files in /usr/include/linux (where they usually are). And this may 
> affect the way things work for some applications. For example I need to work 
> with the quota header file - xqm.h (to try to implement disk quotas for xFS 
> in Samba) and it would be nice to be able to test its existence somewhere 
> independent to the place a kernel build was taken place.
> 

I'm not overly familiar with the Redhat build process, so I
can't really help you with the header file issue.  Perhaps
you need a kernel-header-xfs package or something like that?
eg. try searching for "kernel-header" on rpmfind.net - Eric
might be able to help you out there better than I can.

Alternatively, you could use the xfsprogs-devel rpm, as that
contains /usr/include/xfs/xqm.h - if you look at the current
Samba code though, I think you'll find that you should use
<linux/xqm.h> for consistency with the other quota include
files for Linux.

Also, you might want to check the XFS mailing list archives
because I've sent patches out previously which attempt to
implement XFS quota support in smbd.  Since I only know how
XFS quota works and not how smbd works, there was a fair bit
of guesswork involved - but it will at least provide you with
a good starting point.

> Second, and more important using quotactl system call to set disk quotas 
> (Q_XSETQLIM) doesn't seem to work (more exactly it doesn't seem to have any 
> efect). And I've used a similar call to the one in set_limit_example.c - the 
> sample code from quota-tools.
> 
> It would be nice if you can help me with this.
> 

Look at xfs_commit_dquot() in quotaio_xfs.c for an example of how
to set quota limits for XFS.  I'm not sure why you would need to
do this though - AFAICT, the only quota calls Samba makes are in
smbd to _get_ the limits for a user (not to set them).

Hope this helps.  Let us know how it goes - there's several people
on the XFS list who have asked for this in Samba now.

cheers.

-- 
Nathan


<Prev in Thread] Current Thread [Next in Thread>