Thread (5 messages) 5 messages, 4 authors, 2018-03-13

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

From: Christoph Hellwig <hch@lst.de>
Date: 2018-03-08 14:40:30

On Thu, Mar 08, 2018 at 04:17:19PM +0800, Jiufei Xue wrote:
Hi Christoph,

On 2018/3/8 下午3:46, Christoph Hellwig wrote:
quoted
bio_check_eod() should check partiton size not the whole disk if
bio->bi_partno is non-zero.
I think the check should be done twice if the bio->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").
I disagree.  See my other mail - if it fits inside the partition the
partition rescan code already made sure it also fits inside the device.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help