Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2481389ybd; Mon, 24 Jun 2019 07:11:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdfzohRmhAlDXgs2XVbWWt1U1eGeaHMvESOcC+Kru5W74Mv+Ekhv+pL0a2G+FL7ZlKucpW X-Received: by 2002:a63:1322:: with SMTP id i34mr33729360pgl.424.1561385491539; Mon, 24 Jun 2019 07:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561385491; cv=none; d=google.com; s=arc-20160816; b=zMSkM7/JRW8y14QQHQs2+fwROk2YA8EHDSR/GNCd8qjGWbZ+e/2456oaJ+qiB0Wfi6 ru0ve1RqXXWJYht7r20z6j9V6imStTpgf3Nr77VgKfUFlNIrxu40wA+d/m6JiNHMMbin c4DxfLALUK9rkfthDIZOlsVifARir7KzSgcwwp8FZtbPtmfUAbSdwngW/IggWMKMG1eZ KwinrXH4rQgtPuKrPYTTSFCgvei+PmztpUuJily0Vykz1oN8br/NFLqDbSW7+nzC4Htp E0C70iiGSwAdTaPvNOtngANH8ImdTxMAJdP5zme3th8f2neRLhRm3YblFvB2lQNisXkw WQMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=AD6CuxZHZwY2PV+O8xLRer7/fKAyNbpCHkeETwJgh3g=; b=wAHhmu0Q63oiiWiCq1xCmc5/GL2eegU0zlt5OgjD0V2Ag5IM+xYyI3CESO43sTav0D bXGa82vCjwupjcsrkyV7KqpGUQYQffCzxeqL82iV6qweVoFdzWAKhccE6YiOoGSLe+5W 7iVVPFZfagZKnOySDUWE9p8Z5T9CcopYfCADBJVelD5oQmkEeke1tzTD6AwdN0KxeSll 2SSIRuoKpxUz0AygL2Nc4hO+Vrc/EEWEW8we4fgr9kz1s1fyjXQD5ygS/qIHfHcCxwyz 4pUqgqXrRCW1KYCZIMeO3Xt0eZVG5FD0Q53NG8WznuLMMFZhia0/PDJqkz9sDYqC3ZRJ DkrQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si11080813pfn.105.2019.06.24.07.11.17; Mon, 24 Jun 2019 07:11:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727715AbfFXMp2 (ORCPT + 99 others); Mon, 24 Jun 2019 08:45:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54146 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfFXMp2 (ORCPT ); Mon, 24 Jun 2019 08:45:28 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 892E35F793; Mon, 24 Jun 2019 12:45:28 +0000 (UTC) Received: from [IPv6:::1] (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DA739600D1; Mon, 24 Jun 2019 12:45:27 +0000 (UTC) Subject: Re: [PATCH] quota: honor quote type in Q_XGETQSTAT[V] calls To: Jan Kara Cc: fsdevel , linux-xfs , "linux-ext4@vger.kernel.org" , Bob Peterson References: <0b96d49c-3c0b-eb71-dd87-750a6a48f1ef@redhat.com> <20190624105800.GD32376@quack2.suse.cz> From: Eric Sandeen Message-ID: Date: Mon, 24 Jun 2019 07:45:27 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190624105800.GD32376@quack2.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 24 Jun 2019 12:45:28 +0000 (UTC) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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. ;) -Eric