summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3
diff options
context:
space:
mode:
authorDaniel Pinto <danielpinto52@gmail.com>2022-10-10 13:34:06 +0200
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2022-11-12 18:59:44 +0100
commit19b424501d8588a3111e50fa3d7d926594e78449 (patch)
treed424edb77130267e03960dd80321d6b1d16e76a0 /fs/ntfs3
parentfs/ntfs3: Make hidedotfiles mount option work when renaming files (diff)
downloadlinux-19b424501d8588a3111e50fa3d7d926594e78449.tar.xz
linux-19b424501d8588a3111e50fa3d7d926594e78449.zip
fs/ntfs3: Add hidedotfiles to the list of enabled mount options
Currently, the ntfs3 driver does return the hidedotfiles mount option in the list of enabled mount options. This can confuse users who may doubt they enabled the option when not seeing in the list provided by the mount command. Add hidedotfiles mount option to the list of enabled options provided by the mount command when it is enabled. Signed-off-by: Daniel Pinto <danielpinto52@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r--fs/ntfs3/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c
index 0207cafbab08..464703701ed4 100644
--- a/fs/ntfs3/super.c
+++ b/fs/ntfs3/super.c
@@ -568,6 +568,8 @@ static int ntfs_show_options(struct seq_file *m, struct dentry *root)
seq_puts(m, ",nohidden");
if (opts->windows_names)
seq_puts(m, ",windows_names");
+ if (opts->hide_dot_files)
+ seq_puts(m, ",hidedotfiles");
if (opts->force)
seq_puts(m, ",force");
if (opts->noacsrules)