diff options
| author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2021-04-30 15:34:18 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2021-06-21 15:19:04 +0200 |
| commit | 06e1e7f4223c98965fb721b4b1e12083cfbe777e (patch) | |
| tree | f44f39b71f5ee053f041d6153e18fc2f2079facf /fs/btrfs/disk-io.c | |
| parent | 47cdfb5e1dd60422ec2cbc53b667f73ff9a411dc (diff) | |
| download | linux-06e1e7f4223c98965fb721b4b1e12083cfbe777e.tar.gz linux-06e1e7f4223c98965fb721b4b1e12083cfbe777e.tar.bz2 linux-06e1e7f4223c98965fb721b4b1e12083cfbe777e.zip | |
btrfs: zoned: bail out if we can't read a reliable write pointer
If we can't read a reliable write pointer from a sequential zone fail
creating the block group with an I/O error.
Also if the read write pointer is beyond the end of the respective zone,
fail the creation of the block group on this zone with an I/O error.
While this could also happen in real world scenarios with misbehaving
drives, this issue addresses a problem uncovered by fstests' test case
generic/475.
CC: stable@vger.kernel.org # 5.12+
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions
