From: Daniel Pinto <danielpinto52@gmail.com>
To: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>,
ntfs3@lists.linux.dev, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v2 1/5] fs/ntfs3: fix hidedotfiles mount option by reversing behaviour
Date: Mon, 10 Oct 2022 12:30:15 +0100 [thread overview]
Message-ID: <51c60bcf-82a0-efbf-438d-4925c905503e@gmail.com> (raw)
In-Reply-To: <9c404576-856b-6935-f2e3-c4d0749f16ea@gmail.com>
Currently, the hidedotfiles mount option is behaving in the reverse
way of what would be expected: enabling it disables setting the
hidden attribute on files or directories with names starting with a
dot and disabling it enables the setting.
Reverse the behaviour of the hidedotfiles mount option so it matches
what is expected.
Signed-off-by: Daniel Pinto <danielpinto52@gmail.com>
---
fs/ntfs3/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c
index 1e2c04e48f98..c6fd2afde172 100644
--- a/fs/ntfs3/super.c
+++ b/fs/ntfs3/super.c
@@ -359,7 +359,7 @@ static int ntfs_fs_parse_param(struct fs_context *fc,
opts->nohidden = result.negated ? 1 : 0;
break;
case Opt_hide_dot_files:
- opts->hide_dot_files = result.negated ? 1 : 0;
+ opts->hide_dot_files = result.negated ? 0 : 1;
break;
case Opt_acl:
if (!result.negated)
next prev parent reply other threads:[~2022-10-10 11:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-10 11:27 [PATCH v2 0/5] fs/ntfs3: Fix and rename hidedotfiles mount option Daniel Pinto
2022-10-10 11:30 ` Daniel Pinto [this message]
2022-10-10 11:32 ` [PATCH v2 2/5] fs/ntfs3: make hidedotfiles mount option work when renaming files Daniel Pinto
2022-10-10 11:34 ` [PATCH v2 3/5] fs/ntfs3: add hidedotfiles to the list of enabled mount options Daniel Pinto
2022-10-10 11:35 ` [PATCH v2 4/5] fs/ntfs3: document the hidedotfiles mount option Daniel Pinto
2022-10-10 11:37 ` [PATCH v2 5/5] fs/ntfs3: rename hidedotfiles mount option to hide_dot_files Daniel Pinto
2022-11-12 18:18 ` [PATCH v2 0/5] fs/ntfs3: Fix and rename hidedotfiles mount option Konstantin Komarov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51c60bcf-82a0-efbf-438d-4925c905503e@gmail.com \
--to=danielpinto52@gmail.com \
--cc=almaz.alexandrovich@paragon-software.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ntfs3@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox