diff options
author | Kari Argillander <kari.argillander@gmail.com> | 2021-08-29 17:42:39 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-09-02 18:51:27 +0300 |
commit | 2e3a51b59ea26544303e168de8a0479915f09aa3 (patch) | |
tree | f934100fa3dda296707b31245fdd971938fdc482 /fs/ntfs3 | |
parent | 989e795bfe360cca0affb0a4224f37bd8494b46d (diff) | |
download | linux-2e3a51b59ea26544303e168de8a0479915f09aa3.tar.bz2 |
fs/ntfs3: Change how module init/info messages are displayed
Usually in file system init() messages are only displayed in info level.
Change level from notice to info, but keep CONFIG_NTFS3_64BIT_CLUSTER in
notice level. Also this need even more attention so let's put big
warning here so that nobody will not try accidentally use it.
There is also no good reason to display internal stuff like binary tree
search. This is always on option which can only disabled for debugging
purposes by developer. Also this message does not even check if
developer has disabled it or not so it is useless info.
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r-- | fs/ntfs3/super.c | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index dbecf095da59..55bbc9200a10 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -1448,21 +1448,14 @@ static int __init init_ntfs_fs(void) { int err; - pr_notice("ntfs3: Index binary search\n"); - pr_notice("ntfs3: Hot fix free clusters\n"); - pr_notice("ntfs3: Max link count %u\n", NTFS_LINK_MAX); + pr_info("ntfs3: Max link count %u\n", NTFS_LINK_MAX); -#ifdef CONFIG_NTFS3_FS_POSIX_ACL - pr_notice("ntfs3: Enabled Linux POSIX ACLs support\n"); -#endif -#ifdef CONFIG_NTFS3_64BIT_CLUSTER - pr_notice("ntfs3: Activated 64 bits per cluster\n"); -#else - pr_notice("ntfs3: Activated 32 bits per cluster\n"); -#endif -#ifdef CONFIG_NTFS3_LZX_XPRESS - pr_notice("ntfs3: Read-only LZX/Xpress compression included\n"); -#endif + if (IS_ENABLED(CONFIG_NTFS3_FS_POSIX_ACL)) + pr_info("ntfs3: Enabled Linux POSIX ACLs support\n"); + if (IS_ENABLED(CONFIG_NTFS3_64BIT_CLUSTER)) + pr_notice("ntfs3: Warning: Activated 64 bits per cluster. Windows does not support this\n"); + if (IS_ENABLED(CONFIG_NTFS3_LZX_XPRESS)) + pr_info("ntfs3: Read-only LZX/Xpress compression included\n"); err = ntfs3_init_bitmap(); if (err) @@ -1502,15 +1495,11 @@ static void __exit exit_ntfs_fs(void) MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("ntfs3 read/write filesystem"); -MODULE_INFO(behaviour, "Index binary search"); -MODULE_INFO(behaviour, "Hot fix free clusters"); #ifdef CONFIG_NTFS3_FS_POSIX_ACL MODULE_INFO(behaviour, "Enabled Linux POSIX ACLs support"); #endif #ifdef CONFIG_NTFS3_64BIT_CLUSTER -MODULE_INFO(cluster, "Activated 64 bits per cluster"); -#else -MODULE_INFO(cluster, "Activated 32 bits per cluster"); +MODULE_INFO(cluster, "Warning: Activated 64 bits per cluster. Windows does not support this"); #endif #ifdef CONFIG_NTFS3_LZX_XPRESS MODULE_INFO(compression, "Read-only lzx/xpress compression included"); |