[Libguestfs] [RFC] lib: allow to specify physical/logical block size for disks

Paolo Bonzini pbonzini at redhat.com
Mon Feb 10 19:10:27 UTC 2020


On 10/02/20 12:43, Richard W.M. Jones wrote:
> So it appears that we should just have one blocksize control (maybe
> called "sectorsize"?) which sets both physical_block_size and
> logical_block_size to the same value.  It may also be worth enforcing
> that blocksize/sectorsize must be set to 512 or 4096 (which we can
> relax later if necessary).

Yes, physical_sector_size is basically a hint to the OS and is of rather
limited usefulness.

Paolo




More information about the Libguestfs mailing list