On 28/05/2024 11:58, Christoph Hellwig wrote:
On Tue, May 28, 2024 at 11:54:42AM +0100, John Garry wrote:
I don't think that we ever check if lim->logical_block_size is a power-of-2
- but that's a given, right?
It has to be for the block stack to work. That being said now that we
do have a single good place for sanity checks it's probably worth to
add this check explicitly.
I think that we might be able to get rid of some of the driver
blk_validate_block_size() calls (if we do that), like __nbd_set_size()
-> blk_validate_block_size()