[Ocfs2-devel] [PATCH 00/00] Implement quotas for OCFS2 (version 2)

tristan.ye tristan.ye at oracle.com
Tue Oct 28 19:32:17 PDT 2008


On Wed, 2008-10-29 at 02:57 +0100, Jan Kara wrote:
> > Jan,
> > 
> > Sorry for making the noise again:)
>   I'm happy the patches finally appply fine for you :).

Thanks a lot for your clarifications for my questions,I'll try your
provided tools later.

For the second version(26patches) patch set you've provided, i did not
succeed to apply on your recommended kernel(Mark's linux-next branch),
but only get it done with a success on linus's mainline-2.6.27 kernel.
so it may make a little bit difference with your working environment,
will it make any hurt for quota testing?

Tristan.

> 
> > I'm just curious about one thing, as you said we choose quotaon to
> > enforce the quota limitation on ocfs2 to keep the consistency with other
> > fs, and the quotaon finally call the quoctl with the cmd word
> > 'Q_QUOTAON', here i found the quoctl() need a agrumnet to point to  the
> > path name of file containing the quotas for the filesystem,but
> > unfortunately these files were hidden from userspace on ocfs2. so this
> > quotactl call for turning on the quota will definitely fail, is that the
> > case?
>   No, the quotactl won't fail because OCFS2 kernel module overloads
> function implementing the Q_QUOTAON handling and so filename is actually
> ignored and it provides corresponding system inode instead.
> 
> > Since the existing POSIX quota tools did not work  under ocfs2
> > currently, i've written a simple version of the quota tools(just
> > including getquota,setquotas and quotactl) by the help of quotactl()
> > API.  All of its binaries and src attached.
>   It is strange that they don't work for you. Are you using the version of
> quota-tools I sent you (like week ago after I sent the first set of
> patches)? Because the changed version of quota-tools works here for me just
> fine... I'm attaching it to this mail again just in case it got lost somewhere.
> 
> > As what i said above, my version of quotaon(invoked by 'quotactl -o')
> > also did not work here ,and fortunately, we really do succeed to set/get
> > the quota for usr/group.
> > you can have a check in your env if you wish.
>   Well, having your own tool for turning quotas on is possible as well, but
> I think it would be better if you used provided quota-tools.
> 
> 								Honza




More information about the Ocfs2-devel mailing list