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

Re: strange behaviour with kernel 2.6 and USB mass storage



[Nicos Gollan]
> Wouldn't there be a theoretical problem when the host number reaches
> a maximum? Like when I re-plugged the memorystick, say, 256 times?

OK, you just made me curious enough to check the source.

The SCSI host adapter number is an 'int', meaning it won't overflow
until you have plugged and unplugged your USB drive over 2_000_000_000
times.  I'm guessing your USB port would be pretty worn out physically
by then.  There *is* one lookup in there that casts the index to a
'short int' (I don't know why - looks like a bug), which limits you to
32767 such events ... but that case actually looks harmless, so don't
worry about exceeding it.

Peter

Attachment: signature.asc
Description: Digital signature


Reply to: