lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 16 Jan 2014 08:32:07 +1100
From:	Dave Chinner <david@...morbit.com>
To:	Andreas Dilger <adilger@...ger.ca>
Cc:	Zheng Liu <gnehzuil.liu@...il.com>,
	Ext4 Developers List <linux-ext4@...r.kernel.org>,
	Theodore Ts'o <tytso@....edu>,
	Dmitry Monakhov <dmonakhov@...nvz.org>,
	Ben Myers <bpm@....com>, xfs@....sgi.com,
	Li Xi <pkuelelixi@...il.com>
Subject: Re: [RFC] directory quota survey on xfs

On Wed, Jan 15, 2014 at 11:03:22AM -0700, Andreas Dilger wrote:
> On Jan 15, 2014, at 1:12 AM, Zheng Liu <gnehzuil.liu@...il.com> wrote:
> > On Mon, Dec 23, 2013 at 12:42:22PM +1100, Dave Chinner wrote:
> >> I'd also strongly suggest that you use the XFS userspace quota API
> >> for managing project quotas, so that we can use the same management
> >> tools and tests to verify that they behave the same. Please don't
> >> invent a new version of the quota API to implement this - everything
> >> you need ifor managing project/directory quotas is already there in
> >> xfs_quota.....
> > 
> > Frankly, I don't like this, really.  Now we have quota-tool to manage
> > the quota in ext4.  So IMHO we'd better go on using this tool because it
> > is natural for ext4 users.

Zheng - you're confusing the userspace tool that users run with
the quotactl API the tool uses to communicate with the kernel.

> > I still couldn't accept this fact that I
> > need to install xfsprogs for using a feature of ext4.  Further, it could
> > make users puzzled because they use quota to control user/group quota in
> > ext4, but it uses xfs_quota to control project quota.  It could bring
> > some troubles for the ext4 users who have written some scripts to manage
> > their machines.
> 
> Please see Li Xi's recent email "Directory/Project quota supports" on
> the linux-ext4 list.  He has already added some prototype support for
> project quotas to quota-tools.

So, while it is a prototype, lets do it the right way. i.e. let's
not reinvent the wheel.

> I think it might make sense to keep the same API as XFS for the ext4
> quotas (to keep compatibility for existing XFS deployments), but add
> support into quota-tools so that it is usable by all filesystems.

Well, yes. If you are writing a generic quota tool, then it needs to
support all filesystems. We already have a fully featured quota API
that can provide this support - it's the API that XFS has been using
since it was ported to Linux.  We have the opportunity to unify the
quota APIs that ext4 and XFS, so we should take the opportunity
while it is here.  Don't create a new API for ext4 simply because of
NIH syndrome.

Cheers,

Dave.
-- 
Dave Chinner
david@...morbit.com
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ