qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Forbid to pass lun 0 to iscsi driver


From: Peter Lieven
Subject: Re: [Qemu-devel] Forbid to pass lun 0 to iscsi driver
Date: Mon, 03 Aug 2015 10:29:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]