Am 03.08.2015 um 10:13 schrieb Paolo Bonzini:
On 03/08/2015 09:47, Andrey Korolyov wrote:
I`ve mistyped lun for tgtd upon volume hotplug, which resulted in an
accidental crash, there is nothing but human factor. Until only LUN0
may possess such unusual properties, I`d vote to explicitly work it
around instead of adding generic protection from volumes with
advertized zero block size.
It's only tgtd, as far as I know, that makes LUN0 special. With lio
(in-kernel target), for example, you can associate any kind of LUN to
any LUN number.
I would error out in iscsi_readcapacity_sync if the block_size is
not dividable by BDRV_SECTOR_SIZE or 0. Ok?
Peter