Re: [Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-03 Thread Alan Stern
On Mon, 3 Apr 2017, Guan Xin wrote: > Thank you for your analysis! > I checked that the lost sector is not at the beginning, and I hope > it's not in the middle either. No, it's the very last sector. > So I can avoid using the last few sectors and live with it. > > Thanks again and sorry for wa

Re: [Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-03 Thread Guan Xin
Thank you for your analysis! I checked that the lost sector is not at the beginning, and I hope it's not in the middle either. So I can avoid using the last few sectors and live with it. Thanks again and sorry for wasting your time on a bug that's not in the linux kernel. On Mon, Apr 3, 2017 at 6

Re: [Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-03 Thread Alan Stern
On Mon, 3 Apr 2017, Guan Xin wrote: > Not sure if attachments can be sent around on a mailing list. > I'll put it into the content if you don't see the attached "usbmon.log > (14 bytes, 1398 lines)". Here's your answer. From the usbmon trace: 8800765753c0 1906124951 S Bo:1:015:4 -115 32

Re: [Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-03 Thread Guan Xin
Not sure if attachments can be sent around on a mailing list. I'll put it into the content if you don't see the attached "usbmon.log (14 bytes, 1398 lines)". Guan On Sun, Apr 2, 2017 at 10:15 PM, Alan Stern wrote: > On Sun, 2 Apr 2017, Guan Xin wrote: > >> Bus 002 Device 004: ID 0bc2:2322 Se

Re: [Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-02 Thread Alan Stern
On Sun, 2 Apr 2017, Guan Xin wrote: > Bus 002 Device 004: ID 0bc2:2322 Seagate RSS LLC > Device Descriptor: > bLength18 > bDescriptorType 1 > bcdUSB 2.10 > bDeviceClass0 > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPa

Re: [Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-02 Thread Guan Xin
Bus 002 Device 004: ID 0bc2:2322 Seagate RSS LLC Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 2.10 bDeviceClass0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize064 idVendor 0x0bc2 Seagate

Re: [Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-02 Thread Alan Stern
On Sun, 2 Apr 2017, Guan Xin wrote: > When used through a USB-SATA bridge, disk capacity and optimal IO size > are reported one sector too less. e.g., > > with USB-SATA bridge: > > dmesg: > [ 4542.387857] usb 3-1.2: Product: Expansion > [ 4542.387871] usb 3-1.2: Manufacturer: Seagate > [ 4542.38

[Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-02 Thread Guan Xin
When used through a USB-SATA bridge, disk capacity and optimal IO size are reported one sector too less. e.g., with USB-SATA bridge: dmesg: [ 4542.387857] usb 3-1.2: Product: Expansion [ 4542.387871] usb 3-1.2: Manufacturer: Seagate [ 4542.387874] usb 3-1.2: SerialNumber: [ 4542.439329]