All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs: print if fsverity support is built in when loading module
@ 2021-07-28 16:22 David Sterba
  2021-07-29 14:29 ` Anand Jain
  0 siblings, 1 reply; 4+ messages in thread
From: David Sterba @ 2021-07-28 16:22 UTC (permalink / raw)
  To: linux-btrfs; +Cc: boris, David Sterba

As fsverity support depends on a config option, print that at module
load time like we do for similar features.

Signed-off-by: David Sterba <dsterba@suse.com>
---
 fs/btrfs/super.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 2bdc544b4c95..d444338db3c6 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -2566,6 +2566,11 @@ static void __init btrfs_print_mod_info(void)
 			", zoned=yes"
 #else
 			", zoned=no"
+#endif
+#ifdef CONFIG_FS_VERITY
+			", fsverity=yes"
+#else
+			", fsverity=no"
 #endif
 			;
 	pr_info("Btrfs loaded, crc32c=%s%s\n", crc32c_impl(), options);
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] btrfs: print if fsverity support is built in when loading module
  2021-07-28 16:22 [PATCH] btrfs: print if fsverity support is built in when loading module David Sterba
@ 2021-07-29 14:29 ` Anand Jain
  2021-07-29 15:56   ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Anand Jain @ 2021-07-29 14:29 UTC (permalink / raw)
  To: David Sterba, linux-btrfs; +Cc: boris

On 29/07/2021 00:22, David Sterba wrote:
> As fsverity support depends on a config option, print that at module
> load time like we do for similar features.

  So similarly /sys/fs/btrfs/features/fsverity may be required too?

> Signed-off-by: David Sterba <dsterba@suse.com>

  Reviewed-by: Anand Jain <anand.jain@oracle.com>

Thanks.

> ---
>   fs/btrfs/super.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
> index 2bdc544b4c95..d444338db3c6 100644
> --- a/fs/btrfs/super.c
> +++ b/fs/btrfs/super.c
> @@ -2566,6 +2566,11 @@ static void __init btrfs_print_mod_info(void)
>   			", zoned=yes"
>   #else
>   			", zoned=no"
> +#endif
> +#ifdef CONFIG_FS_VERITY
> +			", fsverity=yes"
> +#else
> +			", fsverity=no"
>   #endif
>   			;
>   	pr_info("Btrfs loaded, crc32c=%s%s\n", crc32c_impl(), options);
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] btrfs: print if fsverity support is built in when loading module
  2021-07-29 14:29 ` Anand Jain
@ 2021-07-29 15:56   ` David Sterba
  2021-08-05  0:07     ` Anand Jain
  0 siblings, 1 reply; 4+ messages in thread
From: David Sterba @ 2021-07-29 15:56 UTC (permalink / raw)
  To: Anand Jain; +Cc: David Sterba, linux-btrfs, boris

On Thu, Jul 29, 2021 at 10:29:32PM +0800, Anand Jain wrote:
> On 29/07/2021 00:22, David Sterba wrote:
> > As fsverity support depends on a config option, print that at module
> > load time like we do for similar features.
> 
>   So similarly /sys/fs/btrfs/features/fsverity may be required too?

Yes, feel free to send a patch.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] btrfs: print if fsverity support is built in when loading module
  2021-07-29 15:56   ` David Sterba
@ 2021-08-05  0:07     ` Anand Jain
  0 siblings, 0 replies; 4+ messages in thread
From: Anand Jain @ 2021-08-05  0:07 UTC (permalink / raw)
  To: dsterba, David Sterba; +Cc: linux-btrfs, boris

On 29/07/2021 23:56, David Sterba wrote:
> On Thu, Jul 29, 2021 at 10:29:32PM +0800, Anand Jain wrote:
>> On 29/07/2021 00:22, David Sterba wrote:
>>> As fsverity support depends on a config option, print that at module
>>> load time like we do for similar features.
>>
>>    So similarly /sys/fs/btrfs/features/fsverity may be required too?
> 
> Yes, feel free to send a patch.

  Oops. It's already there. Commit 6875cbd232c7 (btrfs: initial fsverity 
support) added it.

Thanks, Anand


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-05  0:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28 16:22 [PATCH] btrfs: print if fsverity support is built in when loading module David Sterba
2021-07-29 14:29 ` Anand Jain
2021-07-29 15:56   ` David Sterba
2021-08-05  0:07     ` Anand Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.