Thread (4 messages) 4 messages, 3 authors, 2021-08-05

Re: [PATCH] btrfs: print if fsverity support is built in when loading module

From: Anand Jain <hidden>
Date: 2021-07-29 14:29:59

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 [off-list ref]

Thanks.
quoted hunk ↗ jump to hunk
---
  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);
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help