fs/ntfs3: Add hidedotfiles to the list of enabled mount options
authorDaniel Pinto <danielpinto52@gmail.com>
Mon, 10 Oct 2022 11:34:06 +0000 (12:34 +0100)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Sat, 12 Nov 2022 17:59:44 +0000 (20:59 +0300)
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>
fs/ntfs3/super.c

index 0207cafbab08e2dfe455b57242ac77b62f7bdc65..464703701ed49295db576d9157d3f5124580d807 100644 (file)
@@ -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)