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