[Bugme-new] [Bug 10834] New: virtual usb mass storage won`t work (g_file_storage buggy)
bugme-daemon at bugzilla.kernel.org
bugme-daemon at bugzilla.kernel.org
Thu May 29 16:39:25 PDT 2008
http://bugzilla.kernel.org/show_bug.cgi?id=10834
Summary: virtual usb mass storage won`t work (g_file_storage
buggy)
Product: Drivers
Version: 2.5
KernelVersion: 2.6.26-rc4-git2
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: USB
AssignedTo: greg at kroah.com
ReportedBy: devzero at web.de
Latest working kernel version: must be pre 2.6.20 - didn`t try for longer
Earliest failing kernel version: 2.6.26-rc4-git2
Distribution: opensuse 10.1
Hardware Environment: x86 / p4 box / gigabyte mobo
Software Environment:
Problem Description:
g_file_storage has issues. found by chance when trying to test the disk image
from http://bugzilla.kernel.org/show_bug.cgi?id=10808
[ 356.980966] dummy_hcd dummy_hcd: USB Host+Gadget Emulator, driver 02 May
2005
[ 356.980966] dummy_hcd dummy_hcd: Dummy host controller
[ 356.980966] dummy_hcd dummy_hcd: new USB bus registered, assigned bus number
6
[ 356.980966] usb usb6: configuration #1 chosen from 1 choice
[ 356.980966] hub 6-0:1.0: USB hub found
[ 356.980966] hub 6-0:1.0: 1 port detected
[ 357.081125] usb usb6: New USB device found, idVendor=1d6b, idProduct=0002
[ 357.081125] usb usb6: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 357.081125] usb usb6: Product: Dummy host controller
[ 357.081125] usb usb6: Manufacturer: Linux 2.6.26-rc4-git2 dummy_hcd
[ 357.081125] usb usb6: SerialNumber: dummy_hcd
[ 357.097125] g_file_storage gadget: File-backed Storage Gadget, version: 7
August 2007
[ 357.097125] g_file_storage gadget: Number of LUNs=1
[ 357.097125] g_file_storage gadget-lun0: ro=0, file: /usr/src/1gig.img
[ 357.333158] usb 6-1: new high speed USB device using dummy_hcd and address 2
[ 357.497410] usb 6-1: configuration #1 chosen from 1 choice
[ 357.504975] g_file_storage gadget: high speed config #1
[ 357.516964] usb 6-1: New USB device found, idVendor=0525, idProduct=a4a5
[ 357.516964] usb 6-1: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 357.516964] usb 6-1: Product: File-backed Storage Gadget
[ 357.516964] usb 6-1: Manufacturer: Linux 2.6.26-rc4-git2 with dummy_udc
[ 357.516964] usb 6-1: SerialNumber: 372041756775
[ 357.589267] usbcore: registered new interface driver libusual
[ 357.606688] Initializing USB Mass Storage driver...
[ 357.609677] scsi3 : SCSI emulation for USB Mass Storage devices
[ 357.610434] usbcore: registered new interface driver usb-storage
[ 357.610445] USB Mass Storage support registered.
[ 357.611449] usb-storage: device found at 2
[ 357.611458] usb-storage: waiting for device to settle before scanning
[ 362.616988] usb-storage: device scan complete
[ 362.629133] scsi 3:0:0:0: Direct-Access Linux File-Stor Gadget 0302
PQ: 0 ANSI: 2
[ 362.675335] sd 3:0:0:0: [sdc] 2097152 512-byte hardware sectors (1074 MB)
[ 362.796123] sd 3:0:0:0: [sdc] Write Protect is off
[ 362.796133] sd 3:0:0:0: [sdc] Mode Sense: 0f 00 00 00
[ 362.796141] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 362.815059] sd 3:0:0:0: [sdc] 2097152 512-byte hardware sectors (1074 MB)
[ 362.935829] sd 3:0:0:0: [sdc] Write Protect is off
[ 362.935840] sd 3:0:0:0: [sdc] Mode Sense: 0f 00 00 00
[ 362.935848] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 362.935858] sdc: unknown partition table
[ 362.969156] sd 3:0:0:0: [sdc] Attached SCSI disk
[ 362.969156] sd 3:0:0:0: Attached scsi generic sg3 type 0
[ 378.896392] sd 3:0:0:0: [sdc] 2097152 512-byte hardware sectors (1074 MB)
[ 379.015008] sd 3:0:0:0: [sdc] Write Protect is off
[ 379.015018] sd 3:0:0:0: [sdc] Mode Sense: 0f 00 00 00
[ 379.015049] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 379.015059] sdc: sdc1
[ 381.052975] sd 3:0:0:0: [sdc] 2097152 512-byte hardware sectors (1074 MB)
[ 381.172981] sd 3:0:0:0: [sdc] Write Protect is off
[ 381.172981] sd 3:0:0:0: [sdc] Mode Sense: 0f 00 00 00
[ 381.172981] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 381.172981] sdc: sdc1
[ 433.917140] kjournald starting. Commit interval 5 seconds
[ 433.928980] EXT3 FS on sdc1, internal journal
[ 433.928980] EXT3-fs: mounted filesystem with ordered data mode.
[ 472.008997] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 472.161611] g_file_storage gadget: high speed config #1
[ 472.289530] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 472.441158] g_file_storage gadget: high speed config #1
[ 472.572051] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 472.721021] g_file_storage gadget: high speed config #1
[ 472.849171] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 473.001447] g_file_storage gadget: high speed config #1
[ 473.129015] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 473.285133] g_file_storage gadget: high speed config #1
[ 473.409019] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 473.563772] g_file_storage gadget: high speed config #1
[ 473.577841] sd 3:0:0:0: [sdc] Result: hostbyte=DID_ERROR
driverbyte=DRIVER_OK,SUGGEST_OK
[ 473.577858] end_request: I/O error, dev sdc, sector 213053
[ 473.577866] Buffer I/O error on device sdc1, logical block 26624
[ 473.577871] lost page write due to I/O error on sdc1
[ 473.577883] Buffer I/O error on device sdc1, logical block 26625
[ 473.577888] lost page write due to I/O error on sdc1
[ 473.577895] Buffer I/O error on device sdc1, logical block 26626
[ 473.577900] lost page write due to I/O error on sdc1
[ 473.577907] Buffer I/O error on device sdc1, logical block 26627
[ 473.577911] lost page write due to I/O error on sdc1
[ 473.577918] Buffer I/O error on device sdc1, logical block 26628
[ 473.577923] lost page write due to I/O error on sdc1
[ 473.577930] Buffer I/O error on device sdc1, logical block 26629
[ 473.577934] lost page write due to I/O error on sdc1
[ 473.577941] Buffer I/O error on device sdc1, logical block 26630
[ 473.577946] lost page write due to I/O error on sdc1
[ 473.577952] Buffer I/O error on device sdc1, logical block 26631
[ 473.577957] lost page write due to I/O error on sdc1
[ 473.577964] Buffer I/O error on device sdc1, logical block 26632
[ 473.577969] lost page write due to I/O error on sdc1
[ 473.577976] Buffer I/O error on device sdc1, logical block 26633
[ 473.577980] lost page write due to I/O error on sdc1
[ 473.693738] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 473.845003] g_file_storage gadget: high speed config #1
[ 473.973165] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 474.129007] g_file_storage gadget: high speed config #1
[ 474.253166] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 474.407255] g_file_storage gadget: high speed config #1
[ 474.537007] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 474.685010] g_file_storage gadget: high speed config #1
[ 474.813156] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 474.965178] g_file_storage gadget: high speed config #1
[ 475.093017] usb 6-1: reset high speed USB device using dummy_hcd and address
2
[ 475.245140] g_file_storage gadget: high speed config #1
[ 475.257030] sd 3:0:0:0: [sdc] Result: hostbyte=DID_ERROR
driverbyte=DRIVER_OK,SUGGEST_OK
[ 475.257043] end_request: I/O error, dev sdc, sector 213157
[ 475.257140] Aborting journal on device sdc1.
[ 475.292972] __journal_remove_journal_head: freeing b_committed_data
[ 475.292972] journal commit I/O error
Steps to reproduce:
have kernel with the following options:
CONFIG_USB_DUMMY_HCD=m
CONFIG_USB_FILE_STORAGE=m
CONFIG_USB_FILE_STORAGE_TEST=n
dd if=/dev/zero of=/usr/src/1gig.dat
modprobe g_file_storage file=/usr/src/1gig.dat
kernel recognizing new scsi device - look in dmesg for device name (sdb/sdc...)
then fdisk/format that device. i tried ext3.
mount somewhere
copy some data to the mount. sync
besides this bug, the name "g_file_storage" sucks. isn`t that a "virtual usb
stick/mass storage emulator" ? ;)
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Bugme-new
mailing list