From: Eric Sandeen <sandeen@sandeen.net>
To: xfs@oss.sgi.com
Subject: Re: [PATCH 0/4] quota: add new quotactl Q_XGETQUOTA2
Date: Mon, 18 Jan 2016 18:31:50 -0600 [thread overview]
Message-ID: <569D83F6.6090300@sandeen.net> (raw)
In-Reply-To: <20160118154038.GE6850@quack.suse.cz>
On 1/18/16 9:40 AM, Jan Kara wrote:
> On Mon 18-01-16 09:18:16, Eric Sandeen wrote:
>> On 1/18/16 4:33 AM, Jan Kara wrote:
>>> On Fri 15-01-16 11:31:00, Eric Sandeen wrote:
>>
>> ...
>>
>>>> For a purpose-built interface of "find the next ID" that wouldn't require any
>>>> structure or interface changes...
>>>>
>>>> We could name it Q_GETNEXTQUOTA / Q_XGETNEXTQUOTA to make it explicit about
>>>> the purpose, and document that return behavior. Done & done. ;)
>>>>
>>>> A new grand unified extensible quota call sounds like a great idea, I just
>>>> hate to gate this work on designing a brand-new interface.
>>>
>>> OK, ok. I like Dave's proposal for quotactl2(). So let's leave the unification
>>> for later and implent Q_GETNEXTQUOTA and Q_XGETNEXTQUOTA with the
>>> functionality of your original Q_XGETQUOTA2. Having separate call to get
>>> next ID would save us one new quotactl but OTOH we would need two syscalls
>>> (and quota structure lookups) to report one structure and there are
>>> potentially *lots* of them.
>>
>> Ok, I can re-do it with the new Q_[X]GETNEXTQUOTA names, I've already done
>> the non-xfs one as well, just starting testing on that.
>>
>> With or without the flags argument?
>
> Without. For further extensibility I'd really go for the unified API in the
> end.
Thanks. I'll get new patches out in a bit, putting some polish on them and
the userspace, and seeing about a regression test as well.
Realized I need to think semi-carefully about what we do for IDs found on
disk but not in the user database; today I think extN will show everything;
XFS only shows IDs in the DB, unless an ID range is specified - probably
need to keep all behavior the same, without some explicit commandline switches
to do differently.
Thanks,
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2016-01-19 0:31 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-08 16:56 [PATCH 0/4] quota: add new quotactl Q_XGETQUOTA2 Eric Sandeen
2016-01-08 16:57 ` [PATCH 1/4] " Eric Sandeen
2016-01-08 16:57 ` [PATCH 2/4] xfs: get quota inode from mp & flags rather than dqp Eric Sandeen
2016-01-08 16:58 ` [PATCH 3/4] xfs: Factor xfs_seek_hole_data into helper Eric Sandeen
2016-01-08 17:07 ` [PATCH 3/4 V2] " Eric Sandeen
2016-01-11 15:57 ` [PATCH 3/4] " Jan Kara
2016-01-11 16:01 ` [PATCH 3/4 V3] " Eric Sandeen
2016-01-08 16:59 ` [PATCH 4/4] xfs: wire up Q_XGETQUOTA2 / get_dqblk2 Eric Sandeen
2016-01-08 18:36 ` [PATCH] linux-quota: wire Q_XGETQUOTA2 into generic repquota Eric Sandeen
2016-01-09 7:26 ` [PATCH 0/4] quota: add new quotactl Q_XGETQUOTA2 Christoph Hellwig
2016-01-11 13:26 ` Jan Kara
2016-01-11 16:07 ` Eric Sandeen
2016-01-11 16:28 ` Jan Kara
2016-01-13 22:40 ` Eric Sandeen
2016-01-13 22:40 ` Eric Sandeen
2016-01-15 9:35 ` Jan Kara
2016-01-15 17:31 ` Eric Sandeen
2016-01-15 19:38 ` Eric Sandeen
2016-01-18 10:33 ` Jan Kara
2016-01-18 11:00 ` Christoph Hellwig
2016-01-18 15:18 ` Eric Sandeen
2016-01-18 15:40 ` Jan Kara
2016-01-19 0:31 ` Eric Sandeen [this message]
2016-01-15 22:50 ` Dave Chinner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=569D83F6.6090300@sandeen.net \
--to=sandeen@sandeen.net \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox