Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp590648rwi; Mon, 10 Oct 2022 04:53:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7aN5xsg5WorlvK4jkSRSbNQ0RAEjlTgVZox/FdDNoGnzY3oG28LhON1tFEJt3ckPXBm1/D X-Received: by 2002:a17:907:25c1:b0:77b:9966:ccf1 with SMTP id ae1-20020a17090725c100b0077b9966ccf1mr14413751ejc.763.1665402822194; Mon, 10 Oct 2022 04:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665402822; cv=none; d=google.com; s=arc-20160816; b=LLFN3qccIZ7p3y6aX9WVxEAYRU8vCfQd43uyK5zZlNvhSf0hGNSLPeGYKSiPY+1OYl G/nLetKHWAHLqZXsQouZdfFBOQfFg7GpH2dHcsd1IPGuGos8aH2M8l3Ti+rEvMhogbUl lrqOjvVZqjGu+rp5nhdIDhZPmjuvmxH3zSY+ORESTGc2ZoZ+GtmlIddhsrzFn2iCTreE bjJP9KFHGJA24FuxNwKnS3Acw5A0SnCKnKvcUfOmktIYzSY9YRxpMOF0qL45Y8B7LmG1 Zz8EalD7Lk6SGolYOt6yejT7VdBZjSUXe2C3TbNWNsmC+HVG3T2eAe4op5OteKKRNdoW SLRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=TeL0o0yVihRehcTsidItMwxwi4VSKF8819s3pNgUkoA=; b=SuMS8NZNhNh49janxmLz6514YHfsiBEIeNN9SrnbZ8v7lPY/nozvZn/+n6SCKnkFu6 NwWTHbfVPAvUNDkahZiYIGd1NlWHBVqoWed9f4dkpmbI6DLgmTC8gfTcZCSuO+feJOC/ uy9NJ6YmKF2NKaa2TJ5CGmFOpzc0hi3whXwcrtU9aw/2AyRyCAhhzGNEyrjjz0I1X1D4 wcJvw1Rrh67sI47FfXRdbk05psRYr762rr0cc60u00Gby+T+6vrI7NQOHANsyPjAzbVb 7l/RT3CT1hJkBxaioPvseLBVNM0oewR2mmOWZuMf/Ht6MRn1VAwpYBDoG9j21rAqBBUb JaZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bJkgt8XB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr19-20020a170906d55300b0078dc3cb8b41si1467470ejc.507.2022.10.10.04.53.17; Mon, 10 Oct 2022 04:53:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bJkgt8XB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232070AbiJJLeO (ORCPT + 99 others); Mon, 10 Oct 2022 07:34:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231430AbiJJLeL (ORCPT ); Mon, 10 Oct 2022 07:34:11 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33C0A51417; Mon, 10 Oct 2022 04:34:09 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id bp11so3826780wrb.9; Mon, 10 Oct 2022 04:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TeL0o0yVihRehcTsidItMwxwi4VSKF8819s3pNgUkoA=; b=bJkgt8XBMOYlvYMRd60SqsD5SsRRa2mD22nqQul7gLCyl3sVtJGeJak1zQE8e3Q5H/ PMxmIeeit7bbDDmaasHyMKxQZPJ9NKiT2JVaaudImql6n0GSX98F35GMJt4q0ydiW0TA txD86vwQ4TRMmumInbvulZ+h0TjgEF270O6YZDGxhIH/yQCoL69sgNtp60v+dBFiYdtt 7CuNjbJdSV/41sveFiN1ZfAM9M//seU6iBDwSx/0pH/QkPr8NDVcw9ZKloJ7NYxs3QQc 2BgWyytVHjFQ6u9KC4jd6FBTGRS2lEpquLHkHEyMNl571mVNiEAq/yHSCvHohXGPvfbr wJCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TeL0o0yVihRehcTsidItMwxwi4VSKF8819s3pNgUkoA=; b=XslQ7I7VpogQzVnhJK7yI2g/HZ4SLx8B4O912iC7jgeLlHtZynF2px9IJmYvqSSns8 YeV4crRgPXGvF7uviisdUB7EzvJp0OprKENDUaCgbrHh2pL3jppYBAN0+Kj/s7c7TMKH +hnkd2vfVc89z1Mu9XyIc/oAQene5uMV6KLOgHKtWqgxeJz77R3kyJCoY2pVBjSDsSpx eE2fITBk1k13lVy6FwhiILdFemgnMGrjlweaT94sKP3LrnaFaFRHfmxC5VPeHR7KIrZ+ yMSbRa+AUvdI5ux+OQEzUZZUHpvuqlgm84Xk3M+LoJwZ85Ofs4piG+NIgRHO+a8riopQ zKcQ== X-Gm-Message-State: ACrzQf21pQ7VEbnS+vyfwkmCJ5s8peQPd9xjowA0e9OTCzKBOjctFPGD gd+UoyjgJHjJrNUBrpg+Yn4= X-Received: by 2002:a5d:490c:0:b0:22e:6545:996e with SMTP id x12-20020a5d490c000000b0022e6545996emr10729516wrq.523.1665401647825; Mon, 10 Oct 2022 04:34:07 -0700 (PDT) Received: from [192.168.42.102] (sm4-84-91-228-85.netvisao.pt. [84.91.228.85]) by smtp.gmail.com with ESMTPSA id h5-20020a5d4305000000b0022ac1be009esm8680012wrq.16.2022.10.10.04.34.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Oct 2022 04:34:07 -0700 (PDT) Message-ID: Date: Mon, 10 Oct 2022 12:34:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: [PATCH v2 3/5] fs/ntfs3: add hidedotfiles to the list of enabled mount options Content-Language: pt-PT From: Daniel Pinto To: Konstantin Komarov , ntfs3@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <9c404576-856b-6935-f2e3-c4d0749f16ea@gmail.com> In-Reply-To: <9c404576-856b-6935-f2e3-c4d0749f16ea@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, the ntfs3 driver does return the hidedotfiles mount option in the list of enabled mount options. This can confuse users who may doubt they enabled the option when not seeing in the list provided by the mount command. Add hidedotfiles mount option to the list of enabled options provided by the mount command when it is enabled. Signed-off-by: Daniel Pinto --- fs/ntfs3/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index c6fd2afde172..d796541e2a67 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -561,6 +561,8 @@ static int ntfs_show_options(struct seq_file *m, struct dentry *root) seq_puts(m, ",showmeta"); if (opts->nohidden) seq_puts(m, ",nohidden"); + if (opts->hide_dot_files) + seq_puts(m, ",hidedotfiles"); if (opts->force) seq_puts(m, ",force"); if (opts->noacsrules)