Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1754938pxb; Fri, 6 Nov 2020 19:58:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJynVQoWNFpZ7VsBIF6488uALlboqUvhPnMXxYhOmbc0SHoKr0AEAxPrXhetMicZNIu60Tbn X-Received: by 2002:a05:6402:370:: with SMTP id s16mr5121493edw.50.1604721524437; Fri, 06 Nov 2020 19:58:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604721524; cv=none; d=google.com; s=arc-20160816; b=x3as7p7klWiwa9Ji5/yiW+7aQlxeTAjloZfUPAJz+CWUg5gv8tG1Ux3gaiO48uIwlX Xj7CtoTA30d1T6KDPM0fxlDqGLdhtXbMJeVI9ZwjmH0nKboiTYuSbC6Jm05BGOKsrsC7 7EP4Mm89JEHuAFhErJq7bQPS7lfr5ngkJ48gY34m2C4OUaTKSl65yIf8JckDHzKEbQ0F ZEkIgYz1iuzt3QmfDDKn55Fn337oVgcfuzAyL2mURw+uX2X3IazSk8LKw7Fx6iTJ4qSJ Fg88V/l4olToFdNhYSQeAfnDGggcS/7o8bI0ua88CarFdXXEuES5MDlkyb3vUEtDWCOt dzXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=YzLH+GJa2s/uq3wP6LpDpquxWK8nz+kUzcURJDnDsEU=; b=E8W910QSvd/O+j+jcGhkRMS1idR6KJbDBbNssYM5AoCbroBr4dMrmhH5GWNHo0vEg8 WmIFGzWQYKRm3MYEOycil/EDDiGdJpgW9/rTOpphVjwcl5TFCTN0DYPt8eP5Nelb1UkX BKoODCMhmeBu1US2mu5qEAH7n6DYK2nMg0NvAQh/CsFd715H3m4gh0+cMyhrjetGibeG tWfh0LRWLj97no4PHoPOhc4P7bIo97E/AsKY8/OJohsZ8tvmGF/yVid+o9Udy742NI8f k8Oa0bjKOXyRZ6FtgXaAWYI0JxbPhF7mUcwr2mZdyQjQ7y8DkjnbA8H9etWXUVa6O4rr HeIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s21si2563161ejb.142.2020.11.06.19.58.02; Fri, 06 Nov 2020 19:58:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726880AbgKGDxV (ORCPT + 99 others); Fri, 6 Nov 2020 22:53:21 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:42423 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727142AbgKGDxV (ORCPT ); Fri, 6 Nov 2020 22:53:21 -0500 Received: from callcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 0A73qDAU010914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 6 Nov 2020 22:52:14 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id 5C07F420107; Fri, 6 Nov 2020 22:52:13 -0500 (EST) Date: Fri, 6 Nov 2020 22:52:13 -0500 From: "Theodore Y. Ts'o" To: xiakaixu1987@gmail.com Cc: linux-ext4@vger.kernel.org, adilger.kernel@dilger.ca, Kaixu Xia Subject: Re: [PATCH] ext4: report error message when setting usrjquota or grpjquota options failed Message-ID: <20201107035213.GC2499342@mit.edu> References: <1603986396-28917-1-git-send-email-kaixuxia@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1603986396-28917-1-git-send-email-kaixuxia@tencent.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Oct 29, 2020 at 11:46:36PM +0800, xiakaixu1987@gmail.com wrote: > From: Kaixu Xia > > The macro MOPT_Q is used to indicates the mount option is quota stuff and > would be the same as MOPT_NOSUPPORT when CONFIG_QUOTA is disabled. We want > to report NOSUPPORT error message when setting usrjquota or grpjquota > options with the CONFIG_QUOTA is disabled, but now it report nothing. So > fix it by adding the MOPT_STRING flag. > > Signed-off-by: Kaixu Xia Thanks, applied with an improved commit description: The macro MOPT_Q is used to indicates the mount option is related to quota stuff and is defined to be MOPT_NOSUPPORT when CONFIG_QUOTA is disabled. Normally the quota options are handled explicitly, so it didn't matter that the MOPT_STRING flag was missing, even though the usrjquota and grpjquota mount options take a string argument. It's important that's present in the !CONFIG_QUOTA case, since without MOPT_STRING, the mount option matcher will match usrjquota= followed by an integer, and will otherwise skip the table entry, and so "mount option not supported" error message is never reported. - Ted