Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2795376ybd; Mon, 24 Jun 2019 12:49:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqza1lfZMrubgTeCzmxno/j7oricWaWnzPMz2ql6ehzFxy1hH3w0CLkDkwh/x3FmSQ5BAAcE X-Received: by 2002:a17:902:8609:: with SMTP id f9mr139013338plo.252.1561405798060; Mon, 24 Jun 2019 12:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561405798; cv=none; d=google.com; s=arc-20160816; b=F3LLi1GRKdQWjpTf9b7OA4Q4opdAQ0v7SLXivEP42Vr33TC/ywekDT7J9ueharoIuC 654cW2jwNspYv947GZGvnDqTkP+eA2GsmnicJ9njm4WkLlLQuZ1xoDnR5uxl85WSmJMD /zoMj0pE6CNtVxPPkjJepVnam7P2ZDtBJtvJM652ubNZcokIDIYllVWyjBhwMMx0D/I3 u9e8L5tz9CYGvmVBhki5gysVK90ldeaJfEYUVO77SkBgSfVjCgB/QC0d7ccRrW7iPW1n Kk6w877hIP3DWVn+oSn2Jcu0fWQ6fqAQTFcN2AWANt5hCrkmaV4byx8Q4dgEPOYFCdkX qA7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JpZLeUmrLObTB+Vh5L28LNYzob8BxvTocQeB5Ge1aOk=; b=ZfwkGxj597mPAxg68DZ6GM/re4uV1KwoYqxBPQUxMH7LDPA0gWqJzgVo6eNYDRX1rr jPwcpqBqUflNbmUUXPBbiRYD/LPOKDRhkn8qhY1TWdESh/0T0353zQQ6OLh9yiLbw9u3 3Jiojfa+QYVYM6/QSFkbhhvAJyVx88khasJVSpAJK+BkMVtyYNIGSPtbM9uHIECUob8G uaE5MbQJj0fki6XhozOaK97kJKDpLtHqM6yUE/gCxgkZjYVFfWeA5s8VCTgGjLuvTnSu QTH9BrdTFXs1tPoDFJ/IVJAG5/lS4BnnTSdy5n68Horr8EGY3VhI37Z082/MBQIIH+zE Gy6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si5355048plk.388.2019.06.24.12.49.42; Mon, 24 Jun 2019 12:49:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730772AbfFXPy1 (ORCPT + 99 others); Mon, 24 Jun 2019 11:54:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:41680 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728725AbfFXPy1 (ORCPT ); Mon, 24 Jun 2019 11:54:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id EABABAD94; Mon, 24 Jun 2019 15:54:25 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 5B4111E2F23; Mon, 24 Jun 2019 17:54:25 +0200 (CEST) Date: Mon, 24 Jun 2019 17:54:25 +0200 From: Jan Kara To: Eric Sandeen Cc: Jan Kara , fsdevel , linux-xfs , "linux-ext4@vger.kernel.org" , Bob Peterson Subject: Re: [PATCH] quota: honor quote type in Q_XGETQSTAT[V] calls Message-ID: <20190624155425.GJ32376@quack2.suse.cz> References: <0b96d49c-3c0b-eb71-dd87-750a6a48f1ef@redhat.com> <20190624105800.GD32376@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon 24-06-19 07:45:27, Eric Sandeen wrote: > On 6/24/19 5:58 AM, Jan Kara wrote: > > On Fri 21-06-19 18:27:13, Eric Sandeen wrote: > >> The code in quota_getstate and quota_getstatev is strange; it > >> says the returned fs_quota_stat[v] structure has room for only > >> one type of time limits, so fills it in with the first enabled > >> quota, even though every quotactl command must have a type sent > >> in by the user. > >> > >> Instead of just picking the first enabled quota, fill in the > >> reply with the timers for the quota type that was actually > >> requested. > >> > >> Signed-off-by: Eric Sandeen > >> --- > >> > >> I guess this is a change in behavior, but it goes from a rather > >> unexpected and unpredictable behavior to something more expected, > >> so I hope it's ok. > >> > >> I'm working on breaking out xfs quota timers by type as well > >> (they are separate on disk, but not in memory) so I'll work > >> up an xfstest to go with this... > > > > Yeah, makes sense. I've added the patch to my tree. > > > > Honza > > > > Thanks Jan - if you'd like to fix my "quote" for "quota" in the > subject line, please feel free. ;) Done :) Thanks for the patch. Honza -- Jan Kara SUSE Labs, CR