Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2287094ybd; Mon, 24 Jun 2019 03:58:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwokXrgQx3/9QR3VHyEb0qe0usShZWOu/CJAbhlg//FGVq0v7Xb0UR0NNJo9/6GQttoZRvt X-Received: by 2002:a63:f817:: with SMTP id n23mr32488279pgh.35.1561373927853; Mon, 24 Jun 2019 03:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561373927; cv=none; d=google.com; s=arc-20160816; b=RyUxU/n6DxtLoJ49dP+k3JDntye4GVj/yva65nBZLBUICS7f5M+acFXvm6QAOasg9f w2E//kFc7Qq5xiAuVZwr3f6epqkNmsK7grBC+ccU2+2vEP/Kk555ECePdKFs7Ukv7cGA ZMTYgvYVfmQ9EWP6dtDQWpq16W38w/vrvajWoPy+GhLAAm9qHvA0Fx8LQ8fBDFSmy7yf fqSby58wCVuBW8dR6tzI2YHNYzq+HH0bhcT2B60Q9WLDiMHjiEa74sJUi0rUEASZp6hn rX25J8oWy6bZeJfIPoqnGk7TkALic7FfPtXspA3RqaZXS5i8/B+gruxmBZIIButHQgmX Uhzg== 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=eXA6DZWGiiWRNAIveZ7zqKnOTHtcbQ5qj64vjBpyqKE=; b=lb3nPaIb+aH6cj9XhUehtNyc3E9msIZrx0jDjoRpzfXKb4SWcrhRxzkC5ZXeZizoOh njyOPO8N7G4DLhHNBe22CR5wBl5SvVf5Bjv+/eV9Q4YEKYRDX+Elii1V+kQTK7iEAqTP VA5ifNUaqi2YIkjV0FfJbkhpqpXHaaM7OuwTobzj2KSDISmAlMCYjWKkJo+ar0oZPXhW EVe0Rui0OfEuIoeesDJs2Oa+o0nF8tDtxHfOn6ksNtGzhi2h7oghFxDcekPppxajPlJX T3Xrput4M8q3GPLLn6BK/T9HfdOOE52x/ee5OYpbqqffRPKZaRGq9i1183sSFmrjzGfL iMRg== 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 u24si3097107pgi.3.2019.06.24.03.58.27; Mon, 24 Jun 2019 03:58:47 -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 S1729234AbfFXK6C (ORCPT + 99 others); Mon, 24 Jun 2019 06:58:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:48188 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727730AbfFXK6C (ORCPT ); Mon, 24 Jun 2019 06:58:02 -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 21505ACBA; Mon, 24 Jun 2019 10:58:01 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id A60F91E2F23; Mon, 24 Jun 2019 12:58:00 +0200 (CEST) Date: Mon, 24 Jun 2019 12:58:00 +0200 From: Jan Kara To: Eric Sandeen Cc: fsdevel , Jan Kara , linux-xfs , "linux-ext4@vger.kernel.org" , Bob Peterson Subject: Re: [PATCH] quota: honor quote type in Q_XGETQSTAT[V] calls Message-ID: <20190624105800.GD32376@quack2.suse.cz> References: <0b96d49c-3c0b-eb71-dd87-750a6a48f1ef@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0b96d49c-3c0b-eb71-dd87-750a6a48f1ef@redhat.com> 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 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 -- Jan Kara SUSE Labs, CR