Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ab713cdc authored by Nate Dailey's avatar Nate Dailey Committed by NeilBrown
Browse files

md/raid1: round up to bdev_logical_block_size in narrow_write_error



This modifies raid1's narrow_write_error to round up block_sectors to the
device's logical block size.

This prevents sd complaining about "Bad block number requested" for non-512-byte
sector disks.

Signed-off-by: default avatarNate Dailey <nate.dailey@stratus.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 53a6ab4d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment