Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp915190rwb; Fri, 7 Oct 2022 06:00:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6UxC3SpbgfJt3aVSrIUumdsgMXI4+wNxgJH/qsUInCeXgiWTdMev5cogLRd4smBqP8NisT X-Received: by 2002:a05:6402:3887:b0:458:289e:c9cc with SMTP id fd7-20020a056402388700b00458289ec9ccmr4472835edb.101.1665147632350; Fri, 07 Oct 2022 06:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665147632; cv=none; d=google.com; s=arc-20160816; b=tdVNE780GB8jukVx5IO1C+zu/GsrPMQDR8CiCZjLoy3VgIMemF9FxmsZvgilLgmjWb WHoFPCH0dITWWkxqOI5Q6QpEY1oss2pvFIV4+lob8EfwnzvJs91yLqGIMoP4cVodOL8p PtHkOjNkyYtK/R2g2HxK0fgY9SS882oxr1b8LszFSUZgP3Uud2/6GPuqeZ66J10ccnJq +hkRW/uyi7iawHAFIFPL6DjP+xZlMsMdfSbPH5lSwNTXHLQmCiqUvDOQmPbErxTxPqTK CoTKt4oxDAiebfNLHYRAzxgEUdYd0g3gB/t3apbD1tQufqMkq2SS0REaazuXTUz1E2Iz UgLw== 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=bmg35OUPOqpItFbb0fVCmp2BRL8Uzo+x+AWBO3UBbuk=; b=n+CrQkaeyZk4x/1Xw1kMyRKgdfXBZYw9cfyGOKgbVzMBtvxG5yJi3nXefmmErK2HKm PtFT+nRF6shNYl54sg3bWOs4jl4wIMPOSoLACRnE66PQWZasj4h06wzOv0ZKMO3lwCQS ZVu7In6psDkkyxc7C56xE+QC+jcQwakxPSpHLvzlTTCbMWlrrGCxssHAgvTrz78J5zOI SjOtIIBUlNCFOBlNeunLXZrmFuC/A92LQrerNE2BVyG9MiBpRA6cp+/VomVWL+a9yW26 duiEvFS2MGz1WpzlawBHPLXUQVRaRe/QBVe4OX5UDELqyv80JoBT78BT92u3zypDfls0 6qNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Vv+yV+YD; 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 h1-20020a1709066d8100b0077ccad53173si1838927ejt.277.2022.10.07.05.59.54; Fri, 07 Oct 2022 06:00:32 -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=Vv+yV+YD; 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 S229591AbiJGMnL (ORCPT + 99 others); Fri, 7 Oct 2022 08:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbiJGMnJ (ORCPT ); Fri, 7 Oct 2022 08:43:09 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CA6ACF183; Fri, 7 Oct 2022 05:43:08 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id a3so7189173wrt.0; Fri, 07 Oct 2022 05:43:08 -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=bmg35OUPOqpItFbb0fVCmp2BRL8Uzo+x+AWBO3UBbuk=; b=Vv+yV+YDonhhn4XHYSoPlHX8XAOKIfdmRGmwlFsBM6poITqF4hYx21ryn22p/Iv5OG zpG6X3TmnRKSuS4etgmZjC0xG896FVHDP06ANhxn2wNwjFEBFrFuhyLqPlTXmK9Hn1n4 n32pxmud7iTfs3jREucJuRoGY9DifpfvozVNoDJgOl2tjE2xeBmzzwgKlnfAtdnouGzv HKyy1CVz7Fi986Ohih98mr80Epyk9G43BNgQltr8IMMX35jVW3tBQU6x5gN9AR9f9UKQ jqO9Q9ewrT7pfP5lbbakmLjldvKzPaViX2fosCvWyr/4Xcu1vRtxolbEtuPsvmCqgAUm 6jRw== 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=bmg35OUPOqpItFbb0fVCmp2BRL8Uzo+x+AWBO3UBbuk=; b=vqEGVVWy6V2WIC+1TE7+2PjH0C69GT5E4gOXTr6/ukws9GINjctmSFO4fWaBxokUsS iofJlGrL5qZbaP6spFGzT6kb5T63WDrOuW3MKejTsScvM+EiMuqVZdcS1TrlGHHl7XXh lUoMluKankSDBkA2cPyTk1ZV7oZThO9AVRJWxPl0Avnqu9eVFi2EX2o7TcvjMCcd0VMt GJjkavs2igSESmz+fS1MfZbgP8h4GQkl7ihfkky+NP4EsZZN8Ebze83tWGQx8ZYCY50I sVMRL0bvL+TzkTaRGDYyZRWMS5zvjZ/pcgYw02JpZb848Tg3/nN+4R8TA9FWbzxgix4f 7jLA== X-Gm-Message-State: ACrzQf3KgwTahqLvJtsxnrYLB+/t2MhulJJzhqmW+jR3r7Az3dLnTmRH Qfm04J2O8IWd2fUQpTyczuk= X-Received: by 2002:adf:e6cc:0:b0:22c:e0b9:ef60 with SMTP id y12-20020adfe6cc000000b0022ce0b9ef60mr3264023wrm.404.1665146586890; Fri, 07 Oct 2022 05:43:06 -0700 (PDT) Received: from [192.168.42.102] (mo-217-129-7-245.netvisao.pt. [217.129.7.245]) by smtp.gmail.com with ESMTPSA id j38-20020a05600c1c2600b003b3365b38f9sm1320809wms.10.2022.10.07.05.43.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Oct 2022 05:43:06 -0700 (PDT) Message-ID: <7da4c888-6637-5be9-3e9a-26e0c5f19fb8@gmail.com> Date: Fri, 7 Oct 2022 13:43:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: [PATCH 4/4] fs/ntfs3: rename hidedotfiles mount option to hide_dot_files Content-Language: en-US From: Daniel Pinto To: Konstantin Komarov , ntfs3@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <536f13a9-0890-7e69-65e9-5fe1a30e04ef@gmail.com> In-Reply-To: <536f13a9-0890-7e69-65e9-5fe1a30e04ef@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 compatibility with NTFS-3G. Signed-off-by: Daniel Pinto --- fs/ntfs3/frecord.c | 2 +- fs/ntfs3/inode.c | 2 +- fs/ntfs3/super.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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)