I believe this information is normally space-filled, not null-terminated. I vaguely remember having to trim off trailing blanks for display ...
(too lazy to dig into the spec for this, though ...) On Thursday, January 23, 2014 12:31:01 AM UTC-8, Uli wrote: > > Hi! > > I have a somewhat off-topic question: Are trailing blanks in vendor and > product names considered relevant? The "sginfo" tool in the distribution I > have displays them (and the kernel also keeps them): > --- > # cat -ve /sys/block/sdb/device/vendor > HP $ > # cat -ve /sys/block/sdb/device/model > HSV200 $ > # sginfo /dev/sg1 |cat -ve > INQUIRY response (cmd: 0x12)$ > ----------------------------$ > Device Type 0$ > Vendor: FUJITSU $ > Product: MAY2073RCSUN72G $ > Revision level: 0401$ > $ > # sginfo /dev/sg10 |cat -ve > INQUIRY response (cmd: 0x12)$ > ----------------------------$ > Device Type 0$ > Vendor: HP $ > Product: HSV200 $ > Revision level: 5000$ > $ > --- > > In turn this leads to a somewhat strange display in multipath: > --- > # multipath -l |grep HSV|cat -ve > cLVM-E1 (3600508b4001085e30000f00003d70000) dm-4 HP ,HSV200 > $ > [...] > --- > > Can anybody explain what the SCSI standard says for these issues? > > Regards, > Ulrich > > > -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/groups/opt_out.
