Re: [PATCH 1/1] Remove LUNs that no longer exist when we scan a target with REPORT LUNS.

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

 



On Mon, Aug 16, 2010 at 6:45 AM, Konrad Rzeszutek Wilk
<konrad@xxxxxxxxxx> wrote:
> On Sunday 15 August 2010 20:08:33 realrichardsharpe@xxxxxxxxx wrote:
>> From: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
>>
>> If the target returns logical_unit_not_supported when we send REPORT LUNS
>> it means that it supports REPORT LUNS but there really are no LUNs there.
>> Delete LUN 0 in that case.
>>
>> Also, when parsing the LUNs reported, remove any LUNs that used to exist
>> in the gaps, and remove LUNs beyond the end of those reported. They no
>> longer exist.
>>
>> Also don't scan a target where the ID is too large or the channel is
>> too large.
>>
>> Tested by adding four LUNs with scst_local and then deleting them in
>> various combinations, including deleting from LUN 0, deleting from last
>> LUN and deleting in the middle out.
>
> What happens if you stack the device? Say you got multipath on top of this or
> device-mapper? Does this work properly ? For multipath I would expect it to
> work OK, and multipath device would queue the I/O until a LUN with the same
> SCSI_ID would reappear.

I do not know :-)

Let me test this situation to find out.

-- 
Regards,
Richard Sharpe
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux