Re: [PATCH RFC 2/2] block: Enforce power-of-2 physical block size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/24/25 19:06, John Garry wrote:
> On 22/07/2025 11:26, John Garry wrote:

> drivers/block/virtio_blk.c - not sure, as we use
> zone_write_granularity and I don't know if that must be a power-of-2,
> but from sd_zbc_read_zones() we use physical_block_size, so prob ok

Yes, zone_write_granularity must be a power of 2. Its default should be the LBA
size. There is only one case were it can be different than LBA size: on 512e
HDDs (512 B logical, 4K physical) in which case it must be equal to the physical
block size.

-- 
Damien Le Moal
Western Digital Research




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux