From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.9]:59426 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751362AbcAIH0B (ORCPT ); Sat, 9 Jan 2016 02:26:01 -0500 Date: Fri, 8 Jan 2016 23:26:00 -0800 From: Christoph Hellwig To: Eric Sandeen Cc: fsdevel , xfs@oss.sgi.com, Jan Kara Subject: Re: [PATCH 0/4] quota: add new quotactl Q_XGETQUOTA2 Message-ID: <20160109072600.GA21636@infradead.org> References: <568FEA2C.6080708@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <568FEA2C.6080708@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Jan 08, 2016 at 10:56:12AM -0600, Eric Sandeen wrote: > This adds a new quotactl, Q_XGETQUOTA2. > > Q_XGETQUOTA2 is exactly like Q_XGETQUOTA, except that it will > return quota information for the id equal to or greater than > the id requested. In other words, if the specified id has > no quota, the command will return quota information for the > next higher id which does have a quota set. If no higher id > has an active quota, -ESRCH is returned. Please add a flags argument to Q_XGETQUOTA2, and then make the new behavior the first flag. Keep Q_XGETQUOTA behavior for the flag-less case. That way we get future etensibility for free.