Bug 781882

Summary: Writes to usb mass storage device fails w/ I/O error
Product: [Fedora] Fedora Reporter: Michael Carney <mwc>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: gansalmon, itamar, jforbes, jonathan, kernel-maint, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-14 17:03:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
dmesg text showing phone attaching
none
udevadm monitor output
none
lsusb output
none
/var/log/message text showing write failure
none
lsusb output -- this time explicitly plain text
none
fdisk output showing mounted phone
none
usb-storage.ko build w/ debug messages none

Description Michael Carney 2012-01-15 22:46:59 UTC
Created attachment 555394 [details]
dmesg text showing phone attaching

Description of problem:

I have a Pantech HotShot phone which can act as an USB mass storage device when attached via usb cable. When I attach the phone to the machine, the media system mounts it up OK -- I can see the contents and copy files *from* the phone to my computer, but copying files from the computer to the phone fail rather spectacularly. If I attach the phone to a Windows 7 machine, I can easily copy files in both directions without a problem.


Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
1. Configure Phone to USB mass storage mode
2. Attach using USB cable
3. Wait for media system to detect and mount it, then try to copy files to phone.
  
Actual results: Copy to phone appears to work until explicit sync or implicit sync through umount.


Expected results: Should have same experience as when using Windows 7 box


Additional info: See attachments for the gory details

Comment 1 Michael Carney 2012-01-15 22:48:24 UTC
Created attachment 555395 [details]
udevadm monitor output

udevadm monitor output

Comment 2 Michael Carney 2012-01-15 22:49:19 UTC
Created attachment 555396 [details]
lsusb output

lsusb output

Comment 3 Michael Carney 2012-01-15 22:50:32 UTC
Created attachment 555397 [details]
/var/log/message text showing write failure

/var/log/message text showing the write failure

Comment 4 Michael Carney 2012-01-15 22:56:05 UTC
Created attachment 555398 [details]
lsusb output -- this time explicitly plain text

Comment 5 Michael Carney 2012-01-15 22:59:50 UTC
media system mounts phone as:

/dev/sdd1               vfat      1.9G  9.9M  1.9G   1% /media/FC30-3DA9

Comment 6 Michael Carney 2012-01-15 23:03:27 UTC
Created attachment 555400 [details]
fdisk output showing mounted phone

Comment 7 Michael Carney 2012-01-17 22:52:26 UTC
Created attachment 555877 [details]
usb-storage.ko build w/ debug messages

I built usb-storage.ko w/ debug turned on. This attachment shows the resulting messages. Note that the WRITE_10 at line 1217 fails after 268 bytes of 1024 are written, and things go downhill from there.

Comment 8 Michael Carney 2012-01-22 06:49:02 UTC
My computer is a Dell Workstation 530n with Dual 2Ghz Xeons running FC16. I tried connecting my Pantech to a IBM thinkpad R40 running FC15, and surprisingly enough, it works just fine for both reads and writes -- 1.5Gs worth. No USB errors at all. Strange.

Comment 9 Michael Carney 2012-01-22 06:50:05 UTC
Note that my iPod and Kindle work just fine with both my Dell Workstation 530n and the IBM thinkpad R40.

Comment 10 Dave Jones 2012-03-22 16:55:01 UTC
[mass update]
kernel-3.3.0-4.fc16 has been pushed to the Fedora 16 stable repository.
Please retest with this update.

Comment 11 Dave Jones 2012-03-22 16:58:37 UTC
[mass update]
kernel-3.3.0-4.fc16 has been pushed to the Fedora 16 stable repository.
Please retest with this update.

Comment 12 Dave Jones 2012-03-22 17:10:04 UTC
[mass update]
kernel-3.3.0-4.fc16 has been pushed to the Fedora 16 stable repository.
Please retest with this update.

Comment 13 Michael Carney 2012-03-22 17:25:23 UTC
Still fails with kernel-3.3.0-4.fc16 as reported on Dell Workstation 530n.

Comment 14 Dave Jones 2012-10-23 15:40:05 UTC
# Mass update to all open bugs.

Kernel 3.6.2-1.fc16 has just been pushed to updates.
This update is a significant rebase from the previous version.

Please retest with this kernel, and let us know if your problem has been fixed.

In the event that you have upgraded to a newer release and the bug you reported
is still present, please change the version field to the newest release you have
encountered the issue with.  Before doing so, please ensure you are testing the
latest kernel update in that release and attach any new and relevant information
you may have gathered.

If you are not the original bug reporter and you still experience this bug,
please file a new report, as it is possible that you may be seeing a
different problem. 
(Please don't clone this bug, a fresh bug referencing this bug in the comment is sufficient).

Comment 15 Justin M. Forbes 2012-11-14 17:03:18 UTC
With no response, we are closing this bug under the assumption that it is no longer an issue. If you still experience this bug, please feel free to reopen the bug report.