btrfs: print if fsverity support is built in when loading module
David Sterba
maintainerPATCH 1/1 btrfs: print if fsverity support is built in when loading module
As fsverity support depends on a config option, print that at module load time like we do for similar features.
--- fs/btrfs/super.c | 5 +++++ 1 file changed, 5 insertions(+)
fs/btrfs/super.c +5 -0
@@ -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);
Signature · 1 line
2.31.1
Quoted 2 lines · David Sterba
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?
Quoted 1 line
Signed-off-by David Sterba <[email protected]>
Thanks.
Quoted 21 lines
--- fs/btrfs/super.c | 5 +++++ 1 file changed, 5 insertions(+)fs/btrfs/super.c +5
-0@@ -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);
Quoted 5 lines · Anand Jain
Quoted 2 lines · David Sterba
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/fsveritymay be required too?
Yes, feel free to send a patch.
Quoted 8 lines · David Sterba
Quoted 5 lines · Anand Jain
Quoted 2 lines · David Sterba
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/fsveritymay 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