|
Kmods SIG |
d83023 |
From 9d1939f4575f3fda70dd94542dbd4d775e104132 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
d83023 |
From: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
d83023 |
Date: Tue, 7 Sep 2021 18:35:54 +0300
|
|
Kmods SIG |
d83023 |
Subject: [Backport 9d1939f4575f] src: Make mount option nohidden more
|
|
Kmods SIG |
d83023 |
universal
|
|
Kmods SIG |
d83023 |
MIME-Version: 1.0
|
|
Kmods SIG |
d83023 |
Content-Type: text/plain; charset=UTF-8
|
|
Kmods SIG |
d83023 |
Content-Transfer-Encoding: 8bit
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
If we call Opt_nohidden with just keyword hidden, then we can use
|
|
Kmods SIG |
d83023 |
hidden/nohidden when mounting. We already use this method for almoust
|
|
Kmods SIG |
d83023 |
all other parameters so it is just logical that this will use same
|
|
Kmods SIG |
d83023 |
method.
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
|
|
Kmods SIG |
d83023 |
Reviewed-by: Christoph Hellwig <hch@lst.de>
|
|
Kmods SIG |
d83023 |
Reviewed-by: Pali Rohár <pali@kernel.org>
|
|
Kmods SIG |
d83023 |
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
d83023 |
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
d83023 |
---
|
|
Kmods SIG |
d83023 |
src/super.c | 4 ++--
|
|
Kmods SIG |
d83023 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
diff --git a/src/super.c b/src/super.c
|
|
Kmods SIG |
d83023 |
index 420cd140917007d9edb3072e19f77c87139f8f20..729ead6f2fac0883b7c1180e45d240f35ba7117b 100644
|
|
Kmods SIG |
d83023 |
--- a/src/super.c
|
|
Kmods SIG |
d83023 |
+++ b/src/super.c
|
|
Kmods SIG |
d83023 |
@@ -242,7 +242,7 @@ static const struct fs_parameter_spec ntfs_fs_parameters[] = {
|
|
Kmods SIG |
d83023 |
fsparam_flag_no("discard", Opt_discard),
|
|
Kmods SIG |
d83023 |
fsparam_flag_no("force", Opt_force),
|
|
Kmods SIG |
d83023 |
fsparam_flag_no("sparse", Opt_sparse),
|
|
Kmods SIG |
d83023 |
- fsparam_flag("nohidden", Opt_nohidden),
|
|
Kmods SIG |
d83023 |
+ fsparam_flag_no("hidden", Opt_nohidden),
|
|
Kmods SIG |
d83023 |
fsparam_flag_no("acl", Opt_acl),
|
|
Kmods SIG |
d83023 |
fsparam_flag_no("showmeta", Opt_showmeta),
|
|
Kmods SIG |
d83023 |
fsparam_string("nls", Opt_nls),
|
|
Kmods SIG |
d83023 |
@@ -331,7 +331,7 @@ static int ntfs_fs_parse_param(struct fs_context *fc,
|
|
Kmods SIG |
d83023 |
opts->sparse = result.negated ? 0 : 1;
|
|
Kmods SIG |
d83023 |
break;
|
|
Kmods SIG |
d83023 |
case Opt_nohidden:
|
|
Kmods SIG |
d83023 |
- opts->nohidden = 1;
|
|
Kmods SIG |
d83023 |
+ opts->nohidden = result.negated ? 1 : 0;
|
|
Kmods SIG |
d83023 |
break;
|
|
Kmods SIG |
d83023 |
case Opt_acl:
|
|
Kmods SIG |
d83023 |
if (!result.negated)
|
|
Kmods SIG |
d83023 |
--
|
|
Kmods SIG |
d83023 |
2.31.1
|
|
Kmods SIG |
d83023 |
|