public inbox for ntfs3@lists.linux.dev
 help / color / mirror / Atom feed
From: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
To: Kari Argillander <kari.argillander@gmail.com>, <ntfs3@lists.linux.dev>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] fs/ntfs3: Change how module init/info messages are displayed
Date: Thu, 2 Sep 2021 19:37:25 +0300	[thread overview]
Message-ID: <8c05acf1-b6eb-09b0-e4ea-e9d3c6343545@paragon-software.com> (raw)
In-Reply-To: <20210829144239.58213-1-kari.argillander@gmail.com>



On 29.08.2021 17:42, Kari Argillander wrote:
> 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>
> ---
>  fs/ntfs3/super.c | 27 ++++++++-------------------
>  1 file changed, 8 insertions(+), 19 deletions(-)
> 
> diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c
> index 17ee715ab539..7895039cf673 100644
> --- a/fs/ntfs3/super.c
> +++ b/fs/ntfs3/super.c
> @@ -1430,21 +1430,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)
> @@ -1484,15 +1477,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");
> 

Applied, thanks!

      reply	other threads:[~2021-09-02 16:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-29 14:42 [PATCH] fs/ntfs3: Change how module init/info messages are displayed Kari Argillander
2021-09-02 16:37 ` Konstantin Komarov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c05acf1-b6eb-09b0-e4ea-e9d3c6343545@paragon-software.com \
    --to=almaz.alexandrovich@paragon-software.com \
    --cc=kari.argillander@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ntfs3@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox