Re: [usb-storage] Re: PATCH: exclude certain commands from emulated SCSI hosts

Andries.Brouwer
2003-04-22T16:57:31Z

> The relevant bugzilla bugs are

> http://bugzilla.kernel.org/show_bug.cgi?id=211
> (Mounting a SM/CF reader does not work and does not return)

Hmm. Let me start looking at this one to see whether there is
any indication that filtering might work.

First of all, this user seems to give the wrong command.
He complains
When I try to mount /dev/sdc /mnt/ nothing happens
and later
mount /dev/sdb /mnt

But these cards have a partition table, so he should have
tried to mount sdc1 or sdb1.

(And even straight IDE often fails when one tries to access
ridiculous sectors. Maybe I should submit a patch for that.)

So, even though it would be nicer if this user got a good
error message, there is no sign yet that there is anything
seriously wrong, I think. The inquiry works, the device is
recognized and gets the right size.

In this situation I always say "blockdev --rereadpt /dev/sdX"
to force reading of the partition table. Afterwards one can
mount if all is well. If something is bad, the blockdev command
will hang.

Andries