On 5/10/20 2:57 PM, Mike Christie wrote: > The drivers that emulate the initiator port id (loop, scsi vhost, xen scsiback) > do almost the extact same parsing when making their I_T_nexus. This adds a > helper that parses out the acl name and port name from the user buffer, so > these types of drivers drop prefixes like "naa." when they need to for the > SCSI SPC4 TransportID SAS address, but then keep it for the LIO ACL name. > > The next patches will then convert those drivers. > > Cc: Michael S. Tsirkin <mst@xxxxxxxxxx> > Cc: Jason Wang <jasowang@xxxxxxxxxx> > Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx> > Cc: Stefan Hajnoczi <stefanha@xxxxxxxxxx> > Cc: Juergen Gross <jgross@xxxxxxxx> > Signed-off-by: Mike Christie <mchristi@xxxxxxxxxx> > --- > drivers/target/target_core_fabric_lib.c | 73 +++++++++++++++++++++++++++++++++ > include/target/target_core_fabric.h | 2 + > 2 files changed, 75 insertions(+) > ... Reviewed-by: Lee Duncan <lduncan@xxxxxxxx>