fs/ntfs3: Rename hidedotfiles mount option to hide_dot_files
authorDaniel Pinto <danielpinto52@gmail.com>
Mon, 10 Oct 2022 11:37:13 +0000 (12:37 +0100)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Sat, 12 Nov 2022 17:59:44 +0000 (20:59 +0300)
The hidedotfiles mount option provides the same functionality as
the NTFS-3G hide_dot_files mount option. As such, it should be
named the same for compatibility with NTGS-3G.

Rename the hidedotfiles to hide_dot_files for compatbility with
NTFS-3G.

Signed-off-by: Daniel Pinto <danielpinto52@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Documentation/filesystems/ntfs3.rst
fs/ntfs3/frecord.c
fs/ntfs3/inode.c
fs/ntfs3/super.c

index 3a20ecd13d45e84eccc3871657b67aaea7b46811..7b1e78cf01ad98fb0d2801cbf9ea5ab645f53b00 100644 (file)
@@ -75,7 +75,7 @@ this table marked with no it means default is without **no**.
      - Files with the Windows-specific SYSTEM (FILE_ATTRIBUTE_SYSTEM) attribute
        will be marked as system immutable files.
 
-   * - hidedotfiles
+   * - hide_dot_files
      - Updates the Windows-specific HIDDEN (FILE_ATTRIBUTE_HIDDEN) attribute
        when creating and moving or renaming files. Files whose names start
        with a dot will have the HIDDEN attribute set and files whose names
index 392efa0270f85cde2d68fb575e34d5b616181b01..3b309b9a5e29367cfe8766465eb31755be076bfb 100644 (file)
@@ -3023,7 +3023,7 @@ int ni_add_name(struct ntfs_inode *dir_ni, struct ntfs_inode *ni,
            !valid_windows_name(sbi, (struct le_str *)&de_name->name_len))
                return -EINVAL;
 
-       /* If option "hidedotfiles" then set hidden attribute for dot files. */
+       /* If option "hide_dot_files" then set hidden attribute for dot files. */
        if (ni->mi.sbi->options->hide_dot_files) {
                if (de_name->name_len > 0 &&
                    le16_to_cpu(de_name->name[0]) == '.')
index a2522fc41240fb2cd14706eeab685adb391919bd..3977e98e3fa359567023b067a467445d7c669268 100644 (file)
@@ -1279,7 +1279,7 @@ struct inode *ntfs_create_inode(struct user_namespace *mnt_userns,
                fa = FILE_ATTRIBUTE_ARCHIVE;
        }
 
-       /* If option "hidedotfiles" then set hidden attribute for dot files. */
+       /* If option "hide_dot_files" then set hidden attribute for dot files. */
        if (sbi->options->hide_dot_files && name->name[0] == '.')
                fa |= FILE_ATTRIBUTE_HIDDEN;
 
index 464703701ed49295db576d9157d3f5124580d807..59a831bd0c9b4a1e30fab8a1bf09bc3693cc1ed2 100644 (file)
@@ -269,7 +269,7 @@ static const struct fs_parameter_spec ntfs_fs_parameters[] = {
        fsparam_flag_no("force",                Opt_force),
        fsparam_flag_no("sparse",               Opt_sparse),
        fsparam_flag_no("hidden",               Opt_nohidden),
-       fsparam_flag_no("hidedotfiles",         Opt_hide_dot_files),
+       fsparam_flag_no("hide_dot_files",       Opt_hide_dot_files),
        fsparam_flag_no("windows_names",        Opt_windows_names),
        fsparam_flag_no("acl",                  Opt_acl),
        fsparam_flag_no("showmeta",             Opt_showmeta),
@@ -569,7 +569,7 @@ static int ntfs_show_options(struct seq_file *m, struct dentry *root)
        if (opts->windows_names)
                seq_puts(m, ",windows_names");
        if (opts->hide_dot_files)
-               seq_puts(m, ",hidedotfiles");
+               seq_puts(m, ",hide_dot_files");
        if (opts->force)
                seq_puts(m, ",force");
        if (opts->noacsrules)