Re: RES: RES: AS2105-based enclosure size issues with >2TB HDDs

2014-08-27 Thread Alan Stern
On Wed, 27 Aug 2014, Oliver Neukum wrote: > > I don't think we want to add another SCSI flag to say that READ > > CAPACITY(10) is unreliable. > > Why not? It would only be friendly to tell the upper layer > of a malfunction if we know about it. To what end? What will the upper layer do with thi

Re: RES: RES: AS2105-based enclosure size issues with >2TB HDDs

2014-08-27 Thread Oliver Neukum
On Tue, 2014-08-26 at 10:47 -0400, Alan Stern wrote: > On Mon, 25 Aug 2014, Oliver Neukum wrote: > > Just set US_FL_NEEDS_CAP16. If READ CAPACITY(16) fails in that case, > > it is clear that something is wrong. It must be set or READ CAPACITY(10) > > alone would be taken as giving a valid answer.

Re: RES: RES: AS2105-based enclosure size issues with >2TB HDDs

2014-08-26 Thread Alan Stern
On Mon, 25 Aug 2014, Oliver Neukum wrote: > On Mon, 2014-08-25 at 16:21 -0400, Alan Stern wrote: > > On Mon, 25 Aug 2014, Alfredo Dal Ava Junior wrote: > > > > > Well, it is causing problems anyway... from user perspective, it's a > > > Linux compatibility issue, as it works "fine" on Windows. I'

RE: RES: RES: AS2105-based enclosure size issues with >2TB HDDs

2014-08-26 Thread David Laight
From Oliver Neukum [mailto:oneu...@suse.de] > On Tue, 2014-08-26 at 09:58 +, David Laight wrote: > > > Part of the problem is that usb-storage has no way to know that > > > anything strange is going on. It's normal for READ CAPACITY(16) to > > > fail (this depend on the SCSI level), and it's n

Re: RES: RES: AS2105-based enclosure size issues with >2TB HDDs

2014-08-26 Thread Oliver Neukum
On Tue, 2014-08-26 at 09:58 +, David Laight wrote: > > Part of the problem is that usb-storage has no way to know that > > anything strange is going on. It's normal for READ CAPACITY(16) to > > fail (this depend on the SCSI level), and it's normal for the READ > > CAPACITY(10) to report a valu

RE: RES: RES: AS2105-based enclosure size issues with >2TB HDDs

2014-08-26 Thread David Laight
From: Alan Stern > On Mon, 25 Aug 2014, Alfredo Dal Ava Junior wrote: > > > Well, it is causing problems anyway... from user perspective, it's a > > Linux compatibility issue, as it works "fine" on Windows. I'm not an > > expert, but I'm wondering that if usb-storage could set capacity as > > "UND

Re: RES: RES: AS2105-based enclosure size issues with >2TB HDDs

2014-08-25 Thread Oliver Neukum
On Mon, 2014-08-25 at 16:21 -0400, Alan Stern wrote: > On Mon, 25 Aug 2014, Alfredo Dal Ava Junior wrote: > > > Well, it is causing problems anyway... from user perspective, it's a > > Linux compatibility issue, as it works "fine" on Windows. I'm not an > > expert, but I'm wondering that if usb-st

Re: RES: RES: AS2105-based enclosure size issues with >2TB HDDs

2014-08-25 Thread Alan Stern
On Mon, 25 Aug 2014, Alfredo Dal Ava Junior wrote: > Well, it is causing problems anyway... from user perspective, it's a > Linux compatibility issue, as it works "fine" on Windows. I'm not an > expert, but I'm wondering that if usb-storage could set capacity as > "UNDETERMINED"/ Zero (or keep usi