Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp660778rwi; Mon, 10 Oct 2022 05:46:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5XZHQSF+nUOa77aEfYPaKKcSQ4jwOAxkre51Ao2VQnhScGeXOiaSYAwu7G3Mv2JUtfmSxi X-Received: by 2002:a05:6402:4282:b0:459:befa:c79c with SMTP id g2-20020a056402428200b00459befac79cmr18247721edc.23.1665405971786; Mon, 10 Oct 2022 05:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665405971; cv=none; d=google.com; s=arc-20160816; b=DxBN0GnaJLvwNt5o3sELbuiOy7rvhVjkTsL/s437QrqaLJXw0EMLaw2yLqYVXYxaNS ik5PrQVOzBXpFvBUvy+nDU48gvQ0zuuReTrquObgujVzxbfOHV08nwi2cjVr1dfTn+Xg qTqh/xB+YH/7IcM7EhSizu9jAXYQamF5/CyEjicmtu+Zho3kK0Oii47lorMdh24r00cI lxncoIA7DQp4xlgXLFlUcfMM/b2qdpr0ooZO1mTCuou4lHJ40gWaaSjNnesUkreE7RET 6/nhhNy6EQjyTr3S6uaqVvixXWz5z0Ei3CNWX/0UmC24FfIzo5u3U51jiNJZO9e10mP+ EmQQ== 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=C2EFIm4tesO4K1a7cSrq2x4CXgXoUEITju+DVHW6+iw=; b=wkL1oRvm9qvW/9s/crdbRfL5S7DQntw3I69KGpckyv2aykpP6eRiYGbonFPTk9Y3z4 kZJKdkJip9S+2u66P1Gdyd/Ew5i/YGVzc5XzAZp8gW1GTgy5lgM2s6BYcKfq6g/hvbVg A3Ny9Lr50sTS+jMk8uriHo6D7bISugEIUsqP7tdn0GOb2rmmieYvt43JT1fcKpAzWlfE lPBN2clYq+FKbpkYf1TDDCu2bFfECyCF+L+uppQGA4wJIIDUP9vZXJ4szjF9r4TIJZxs D0jDK/pdDkAZNzBZ9+vzbkT/bL7ICNTU+OGwoVNLRSh3PMCuZ8muoZ6vD5RVJP2OR6Yk 8aFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ccPzMT3V; 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 ae8-20020a17090725c800b0072fb108db55si11547583ejc.895.2022.10.10.05.45.46; Mon, 10 Oct 2022 05:46:11 -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=ccPzMT3V; 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 S232146AbiJJLhS (ORCPT + 99 others); Mon, 10 Oct 2022 07:37:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232139AbiJJLhQ (ORCPT ); Mon, 10 Oct 2022 07:37:16 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C63F86E8A2; Mon, 10 Oct 2022 04:37:15 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id o20-20020a05600c4fd400b003b4a516c479so6248196wmq.1; Mon, 10 Oct 2022 04:37:15 -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=C2EFIm4tesO4K1a7cSrq2x4CXgXoUEITju+DVHW6+iw=; b=ccPzMT3VJJ8v7DzPBzM1ZEtHzbEmIfYjtfYJ2k0FiNbwCHZPKU6nkzuSKhOr6OB8U7 lOuhDT2lO4vFdvHZjTKxIdL2SfTPKVDtTqPLVw6zeKALh4KG4tCEsf8OX6liE/5DIsbf JRdH2aK6txpHYM6YXo/ZCSAjVKKJF10fdIajaVpj9AePxmhyOCLTUlR9RgN3TulHZ7RT A4X7HTJlyzaWUQAkzUYTpk1kOOw2LRxeQ4uwIpM1ONXJXxr1S9EFre2Ie5C5/+2hY97e CuSJm/IKg2/DZbUjgrkcIvuRBT6UnoYV/OI3DOpqc8/hQ4wz7R5Hs2F7/rS8ZgLGWkhv ftYQ== 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=C2EFIm4tesO4K1a7cSrq2x4CXgXoUEITju+DVHW6+iw=; b=u7Cuemx4/FqC6i4WVJdpD8cCNKFUqy7rkjKNzidvfGBvEHLFuQmANfPSiGdxfhQIRQ Oy7eUDtwejSK5eoIvPyNcIfWlzBcmCcIeyAX/YYX25pVqNIz3Sm3on5vsKGwxdqPq1kQ i4RTluSG6TOWophNaHEGeH3/eNjIjTadLq8RqMv8lUoZ8ks2p17MbGTbV6A0byOj+lbt YQ/4FJvn0nZJV9AZqYp9TA4PPm09E6btzGJRpZde5rswR3itIBgIOlN1p89YOvjoaU0c CSxIzsAihYL078bJxQONiOe7wlEMTDq9+/Kyrg0eW21iRc6ABN/4J4uxiciQ8PqP82LM epiA== X-Gm-Message-State: ACrzQf39fuO7yiCvhZtcFFB61tvPf0cjZGPDXLRSZMuuqQ+XX1DiruIt OFJUuyCANPgDiHjJy+v3ydk= X-Received: by 2002:a7b:cb95:0:b0:3c6:c0e7:88ab with SMTP id m21-20020a7bcb95000000b003c6c0e788abmr340799wmi.147.1665401834383; Mon, 10 Oct 2022 04:37:14 -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 o18-20020a1c7512000000b003b492753826sm9794969wmc.43.2022.10.10.04.37.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Oct 2022 04:37:14 -0700 (PDT) Message-ID: Date: Mon, 10 Oct 2022 12:37:13 +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 5/5] fs/ntfs3: rename hidedotfiles mount option to hide_dot_files 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 The hidedotfiles mount option provides the same functionality as the NTFS-3G hide_dot_files mount option. As such, it should be named the same for compatibility with NTGS-3G. Rename the hidedotfiles to hide_dot_files for compatbility with NTFS-3G. Signed-off-by: Daniel Pinto --- Documentation/filesystems/ntfs3.rst | 2 +- fs/ntfs3/frecord.c | 2 +- fs/ntfs3/inode.c | 2 +- fs/ntfs3/super.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/filesystems/ntfs3.rst b/Documentation/filesystems/ntfs3.rst index fa03165f2310..4c6eb9fe9bea 100644 --- a/Documentation/filesystems/ntfs3.rst +++ b/Documentation/filesystems/ntfs3.rst @@ -75,7 +75,7 @@ this table marked with no it means default is without **no**. - Files with the Windows-specific SYSTEM (FILE_ATTRIBUTE_SYSTEM) attribute will be marked as system immutable files. - * - hidedotfiles + * - hide_dot_files - Updates the Windows-specific HIDDEN (FILE_ATTRIBUTE_HIDDEN) attribute when creating and moving or renaming files. Files whose names start with a dot will have the HIDDEN attribute set and files whose names diff --git a/fs/ntfs3/frecord.c b/fs/ntfs3/frecord.c index 41a20d71562a..552dbc5b80b1 100644 --- a/fs/ntfs3/frecord.c +++ b/fs/ntfs3/frecord.c @@ -3018,7 +3018,7 @@ int ni_add_name(struct ntfs_inode *dir_ni, struct ntfs_inode *ni, struct ATTR_FILE_NAME *de_name = (struct ATTR_FILE_NAME *)(de + 1); u16 de_key_size = le16_to_cpu(de->key_size); - /* If option "hidedotfiles" then set hidden attribute for dot files. */ + /* If option "hide_dot_files" then set hidden attribute for dot files. */ if (ni->mi.sbi->options->hide_dot_files) { if (de_name->name_len > 0 && le16_to_cpu(de_name->name[0]) == '.') diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c index e9cf00d14733..7ce2bb7646db 100644 --- a/fs/ntfs3/inode.c +++ b/fs/ntfs3/inode.c @@ -1272,7 +1272,7 @@ struct inode *ntfs_create_inode(struct user_namespace *mnt_userns, fa = FILE_ATTRIBUTE_ARCHIVE; } - /* If option "hidedotfiles" then set hidden attribute for dot files. */ + /* If option "hide_dot_files" then set hidden attribute for dot files. */ if (sbi->options->hide_dot_files && name->name[0] == '.') fa |= FILE_ATTRIBUTE_HIDDEN; diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index d796541e2a67..af67756998df 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -268,7 +268,7 @@ static const struct fs_parameter_spec ntfs_fs_parameters[] = { fsparam_flag_no("force", Opt_force), fsparam_flag_no("sparse", Opt_sparse), fsparam_flag_no("hidden", Opt_nohidden), - fsparam_flag_no("hidedotfiles", Opt_hide_dot_files), + fsparam_flag_no("hide_dot_files", Opt_hide_dot_files), fsparam_flag_no("acl", Opt_acl), fsparam_flag_no("showmeta", Opt_showmeta), fsparam_flag_no("prealloc", Opt_prealloc), @@ -562,7 +562,7 @@ static int ntfs_show_options(struct seq_file *m, struct dentry *root) if (opts->nohidden) seq_puts(m, ",nohidden"); if (opts->hide_dot_files) - seq_puts(m, ",hidedotfiles"); + seq_puts(m, ",hide_dot_files"); if (opts->force) seq_puts(m, ",force"); if (opts->noacsrules)