Re: [PATCH 1/2] scsi: scsi_vpd_lun_id(): fix designator priorities

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

 



On 11/11/20 4:05 AM, Martin K. Petersen wrote:

Martin,

The current code would use the first descriptor, because it's longer
than the NAA descriptor. But this is wrong, the kernel is supposed to
prefer NAA descriptors over T10 vendor ID. Designator length should
only be used to compare designators of the same type.

This patch addresses the issue by separating designator priority and
length.

I am concerned that we're going to break existing systems since their
/dev/disk/by-* names might change as a result of this. Thoughts?

No, this shouldn't happen. With the standard udev rules we're creating symlinks for all possible VPD designators, so they don't change. The patch really is just for multipath to handle error cases better; we've had this situation when reading the vpd page hit an I/O error.

Cheers,

Hannes
--
Dr. Hannes Reinecke                Kernel Storage Architect
hare@xxxxxxx                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer



[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