• Matthew Dharm's avatar
    [PATCH] USB Storage: change how INQUIRY is fixed up · 3aaad15a
    Matthew Dharm authored
    The usb-storage driver 'fixes up' the INQUIRY data returned by a device so
    that it reads SCSI rev 2 by intercepting the data in-flight.  This was done
    to make various SCSI drivers (sd, sr, etc.) work with the device.
    
    However, this technique also has the unfortunate side-effect that nobody
    can see the real rev. -- not even sg users.
    
    This patch changes that.  Now, the SCSI revision is changed in the
    slave_configure() function.  Thus, the 'real' data is available to anyone
    who wants to issue an INQUIRY directly via any means.
    
    This also simplifies the code somewhat.
    Signed-off-by: default avatarMatthew Dharm <mdharm-usb@one-eyed-alien.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    3aaad15a
scsiglue.c 15.4 KB