Re: Reducing the verbosity of inserting a USB storage device

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

 



On Sun, Sep 20, 2009 at 09:09:45PM -0400, Alan Stern wrote:
> I approve of these changes in general, but there should be one more
> line of information.  In the "after" example, there's nothing to relate
> the USB device mentioned in the first two lines with the SCSI device
> mentioned in the remaining six.  I'd like to see one line in between
> from usb-storage, to indicate which USB interface is being registered
> as which SCSI host.
> 
> We don't print anything quite like that right now, so this would have 
> to be something new.  The closest we come is the "scsi4 : SCSI 
> emulation for USB Mass Storage devices" line, and it doesn't mention 
> the USB interface.

I think you're right.  Here's my current dmesg:

usb 1-4: new high speed USB device using ehci_hcd and address 3
scsi4 : usb-storage 1-4:1.0
scsi 4:0:0:0: Direct-Access              Flash Disk       5.00 PQ: 0 ANSI: 2
sd 4:0:0:0: Attached scsi generic sg1 type 0
sd 4:0:0:0: [sdb] Assuming drive cache: write through
sd 4:0:0:0: [sdb] 2009088 512-byte logical blocks: (1.02 GB/981 MiB)
sd 4:0:0:0: [sdb] Removable disk, Write Protect is off
 sdb: unknown partition table

That actually makes the patchset slightly simpler; before:

 drivers/scsi/hosts.c           |    3 +
 drivers/scsi/sd.c              |   78 +++++++++++++++++++++++------------------
 drivers/usb/storage/scsiglue.c |    3 +
 drivers/usb/storage/usb.c      |   13 ++++--
 include/scsi/scsi_host.h       |    3 +
 5 files changed, 60 insertions(+), 40 deletions(-)

after:

 drivers/scsi/sd.c              |   78 +++++++++++++++++++++++------------------
 drivers/usb/core/generic.c     |    2 -
 drivers/usb/storage/scsiglue.c |    3 +
 drivers/usb/storage/usb.c      |   15 +++++--
 drivers/usb/storage/usb.h      |    1 
 5 files changed, 58 insertions(+), 41 deletions(-)

Patches to follow.

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux