Re: [PATCH 2/4] block: bio_check_eod() needs to consider partition

Christoph Hellwig
2018-03-08T07:44:10Z

On Thu, Mar 01, 2018 at 09:23:06AM +0800, Jiufei Xue wrote:
> I think the check should be done twice if the bi_partno is not zero,
> one for the partition, and another for the whole disk after remap which
> is add in the commit 5ddfe9691c91
> ("md: check bio address after mapping through partitions").

Why? If the partitions has an incorrect size we already catch it during
parsing in rescan_partitions().