btrfs-progs: mkfs: print note about loading sha256 when used

The module loading issue is documented but make it more visible at mkfs
time.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2021-06-23 13:20:10 +02:00
parent 0a020ba2d9
commit 4d86d928c1

View File

@ -1582,6 +1582,13 @@ raid_groups:
printf("\n");
list_all_devices(root);
if (mkfs_cfg.csum_type == BTRFS_CSUM_TYPE_SHA256) {
printf(
"NOTE: you may need to manually load kernel module implementing accelerated SHA256 in case\n"
" the generic implementation is built-in, before mount. Check lsmod or /proc/crypto\n\n"
);
}
}
/*