]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: print checksum type and implementation at mount time
authorDavid Sterba <dsterba@suse.com>
Wed, 22 Jun 2022 18:45:18 +0000 (20:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:07:35 +0000 (12:07 +0200)
commit01cd97837485356141f71e5f4619f7552dd705df
tree629c17162ba64399b9e0695591f5d461d582f0e8
parent9d26d1fda4716d29b99efdc3d66862ce6569a4e6
btrfs: print checksum type and implementation at mount time

commit 4bda303240da4694d8d552b83b50d301339470f8 upstream.

Per user request, print the checksum type and implementation at mount
time among the messages. The checksum is user configurable and the
actual crypto implementation is useful to see for performance reasons.
The same information is also available after mount in
/sys/fs/FSID/checksum file.

Example:

  [25.323662] BTRFS info (device vdb): using sha256 (sha256-generic) checksum algorithm

Link: https://github.com/kdave/btrfs-progs/issues/483
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/disk-io.c