Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp782732pxb; Wed, 8 Sep 2021 12:13:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ0OwVG8F5yfUaDh1Z4U5sPZN/Yi8/2CHnW4MFMI8TAVFTt0MzidJ0GHqxEd6DuYQ1lNPH X-Received: by 2002:a17:906:e82:: with SMTP id p2mr1499218ejf.50.1631128425386; Wed, 08 Sep 2021 12:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631128425; cv=none; d=google.com; s=arc-20160816; b=cbcrcZ/2a3Otx99oAL0RNvKJmgqalZDKkKJfK0mMx2qiik8BRUEPwW/iO7Ua3HOTZd PyXD74r04av8UBlvb56A6/7UIbomDzNVIpx3ggCDsg8hmvTTSoF/Y6Y6Bzg9PJGrlV/M 0/JABmthIz2ZRQdb+tVEbE0xQ/aLtgEaAD+G0Tk3F15jB9/kLXHC8sFIlLsRV1Onaqnl pCSjSuY8JPuQMENsZa12J+uHkmc9d+6cBY7OqN8A3M8oCpyUBeL2QUkKIk4WiJs6Uj0g DZvJQfeRmjOS7gshc2p7JAdHQCZQW0wJml/yN7CG6oEy18QIhN6GPmeZK5alhtuJ2a2K Hjfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=z8HzYXWvAl/uMg7qgvgBuR883ylfi3v8yNWKl1BzYDs=; b=gEV3aniOFVpY9tfTm8OjO4oxVK0m8JJot8+Na3QxR42hc5TxbE3hmrDof970IEPsZI 4y0xA9eD+rq8RbGaScbS+JRhwYNX+Y6v6JzDDAHWmz+K7HEuXwDoBVF8DfjRAUnZE2u5 m7x6f0COPsbktsJ63R7aOfhbCG03iLYjgMqieCidbRtDABqFieZ17qDGTFCyFz7R0BLD cHsvEKjXKE01bCDXi/jfn23a3S9dFGp48hVdSkTthE1PSzf2obP45hEX3+4hGQXyFoRO kkRRoE8hBwTIIpIqgSQ/5P+KcnE3CXk0cxVuIRotE7Xz9EZo4JyW7KEhApZEZfSqAKfs 7o6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dRYCXCHM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga37si2980650ejc.116.2021.09.08.12.13.19; Wed, 08 Sep 2021 12:13:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dRYCXCHM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348491AbhIHTMk (ORCPT + 99 others); Wed, 8 Sep 2021 15:12:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:60764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345251AbhIHTMj (ORCPT ); Wed, 8 Sep 2021 15:12:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6FABE610A3; Wed, 8 Sep 2021 19:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631128291; bh=z31e8qSY4Nh9Jkp6SWIDwkT4uIWfqkLETf3pT4/bx0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dRYCXCHM0R/Y/qqIMdM08fitpL0+40AGIx2weEqYXZRWoFingxS3Ok3mxOH4Jg+tj kBCOZPbK5nDh8R7NUKLPgcxrOxXOlGHtBuUsn/j62NEVl7kUId4RV4+DxvUtd516Qw dENGbf1ieQiLPcTyZlkubolNbI9xcEZuW8kQQGp7lRC61kB3vZ1Fa1mYzl4mGvFhHq ewtq+D2A2q0lg0psHJ0xbAQ0fKeIjXO812zIcYvk1lkgqswOXupq25y1GFpUVVM6IJ rASE28VhKdUwjym+JS/bQ2UKDYnwqOcKIwCA2fIig5dGgOeEfFXEH0hBE4NutpRjix 7i7fcgV/gSdsQ== Received: by pali.im (Postfix) id 873CB708; Wed, 8 Sep 2021 21:11:29 +0200 (CEST) Date: Wed, 8 Sep 2021 21:11:29 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Kari Argillander Cc: Konstantin Komarov , ntfs3@lists.linux.dev, Christoph Hellwig , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , Christian Brauner Subject: Re: [PATCH v4 6/9] fs/ntfs3: Make mount option nohidden more universal Message-ID: <20210908191129.t43r3z275rtpkpbn@pali> References: <20210907153557.144391-1-kari.argillander@gmail.com> <20210907153557.144391-7-kari.argillander@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210907153557.144391-7-kari.argillander@gmail.com> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 07 September 2021 18:35:54 Kari Argillander wrote: > If we call Opt_nohidden with just keyword hidden, then we can use > hidden/nohidden when mounting. We already use this method for almoust > all other parameters so it is just logical that this will use same > method. > > Acked-by: Christian Brauner > Reviewed-by: Christoph Hellwig > Signed-off-by: Kari Argillander Reviewed-by: Pali Rohár > --- > fs/ntfs3/super.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c > index 420cd1409170..729ead6f2fac 100644 > --- a/fs/ntfs3/super.c > +++ b/fs/ntfs3/super.c > @@ -242,7 +242,7 @@ static const struct fs_parameter_spec ntfs_fs_parameters[] = { > fsparam_flag_no("discard", Opt_discard), > fsparam_flag_no("force", Opt_force), > fsparam_flag_no("sparse", Opt_sparse), > - fsparam_flag("nohidden", Opt_nohidden), > + fsparam_flag_no("hidden", Opt_nohidden), > fsparam_flag_no("acl", Opt_acl), > fsparam_flag_no("showmeta", Opt_showmeta), > fsparam_string("nls", Opt_nls), > @@ -331,7 +331,7 @@ static int ntfs_fs_parse_param(struct fs_context *fc, > opts->sparse = result.negated ? 0 : 1; > break; > case Opt_nohidden: > - opts->nohidden = 1; > + opts->nohidden = result.negated ? 1 : 0; > break; > case Opt_acl: > if (!result.negated) > -- > 2.25.1 >