Re: [PATCH v2 6/8] btrfs: verify superblock checksum during scan

2018-03-29 Thread Anand Jain
On 03/28/2018 03:21 PM, Nikolay Borisov wrote: On 28.03.2018 02:39, Anand Jain wrote: During the scan context, we aren't verifying the superblock- checksum when read. This patch fixes it by adding the checksum verification function btrfs_check_super_csum() in the function

Re: [PATCH v2 6/8] btrfs: verify superblock checksum during scan

2018-03-28 Thread Nikolay Borisov
On 28.03.2018 02:39, Anand Jain wrote: > During the scan context, we aren't verifying the superblock- > checksum when read. > This patch fixes it by adding the checksum verification function > btrfs_check_super_csum() in the function btrfs_read_disk_super(). > And makes device scan to error fail

[PATCH v2 6/8] btrfs: verify superblock checksum during scan

2018-03-27 Thread Anand Jain
During the scan context, we aren't verifying the superblock- checksum when read. This patch fixes it by adding the checksum verification function btrfs_check_super_csum() in the function btrfs_read_disk_super(). And makes device scan to error fail if the primary superblock csum is wrong, whereas