Re: [RFC] block: check partition alignment

From: Christoph Hellwig
Date: Thu Dec 15 2016 - 04:06:31 EST


On Thu, Dec 15, 2016 at 10:33:47AM +0900, Damien Le Moal wrote:
> For a regular block device, I agree. But in Stephan case, I think that
> the check really needs to be against the physical block size, with the
> added condition that the bdev is a DASD device (similarly to the zone
> alignment check for zoned block devices).

Then they need to expose a chunk_size. physical block size is defined
as not having a meaning for the kernel.