Re: Bug with QLE2564 (leading zero) in target mode

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

 




On 01/23/2016 03:54 AM, Nicholas A. Bellinger wrote:
This looks like a genuine string formatting bug in qla2xxx LLD + libfc
code. (Adding Qlogic folks CC')

As a simple work-around, you can add the following awk hackery to
your /var/target/fabric/qla2xxx.spec:wwn_from_files_filter to insert the
missing leading zero:

wwn_from_files_filter = "awk -F, '{ if (length($1)==18) print $1 } { if
(length($1)==17) { gsub("0x","&0") ; print $0 }}' | sed -e s/0x// -e
's/../&:/g' -e s/:$//"

Which translates to:

# echo "0x15c0024ff236d37" | awk -F, '{ if (length($1)==18) print $1 }
{ if (length($1)==17) { gsub("0x","&0") ; print $0 }}' | sed -e s/0x//
-e 's/../&:/g' -e s/:$//
01:5c:00:24:ff:23:6d:37


I'll push that to rtslib to detect (based on WWN length) this bug and pad with zeroes until this is fixed.
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux