]> 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)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:38 +0000 (17:45 +0200)
commit4bda303240da4694d8d552b83b50d301339470f8
tree456c351754c2cbf7be0175d26612c795d236aaa1
parenta0fd1e2ce491c87bb9686767aee859b00b01e72a
btrfs: print checksum type and implementation at mount time

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>
fs/btrfs/disk-io.c