Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 675785

Summary: external usb harddrive is not redirected if it contains filesystem which is not recognized by guest
Product: Red Hat Enterprise Linux 6 Reporter: Lubos Kocman <lkocman>
Component: spice-usb-shareAssignee: Uri Lublin <uril>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.2CC: alevy, mhasko
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-27 12:50:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lubos Kocman 2011-02-07 18:36:41 UTC
Description of problem:

The standard situation:

Client obtains rhel6 client with installed spice-usb-share but without ntfs-3g. Connects to a guest plugs his ntfs formated flash drive and nothing ... only a client alert "Unable  to mount YOURMEDIA filesystem is not supported".

cat /tmp/usbrdrctrl-*.log

at /tmp/usbrdrctrl-10724.log 
main:  10.34.58.217 32023 -c /tmp/SpiceForeignMenu-10718.uds -l USB Devices,No USB devices,Client's SPICE USB Redirector is not installed -f -1,60186,10000,256,1|-1,1118,245,-1,1|-1,1133,2245,-1,1|-1,1133,2242,5,1|8,-1,-1,-1,1|7,-1,-1,-1,1|-1,-1,-1,-1,0 -a
open_connection: Openning a foreign menu connection: /tmp/SpiceForeignMenu-10718.uds
log_usb_error: USB Redirector init error err = 31 arg = 917632
set_filter: -1,60186,10000,256,1|-1,1118,245,-1,1|-1,1133,2245,-1,1|-1,1133,2242,5,1|8,-1,-1,-1,1|7,-1,-1,-1,1|-1,-1,-1,-1,0
init: Initializing foreign menu: USB Devices
execute: USB Controller is now running...
handle_foreign_menu_message: Got a menu event: FOREIGN_MENU_ACTIVATE
handle_foreign_menu_message: Got a menu event: FOREIGN_MENU_DEACTIVATE
auto_sharing: Ignored devices list was cleared.
handle_foreign_menu_message: Got a menu event: FOREIGN_MENU_ACTIVATE
handle_foreign_menu_message: Got a menu event: FOREIGN_MENU_DEACTIVATE
auto_sharing: Ignored devices list was cleared.
handle_foreign_menu_message: Got a menu event: FOREIGN_MENU_ACTIVATE
handle_foreign_menu_message: Got a menu event: FOREIGN_MENU_DEACTIVATE
auto_sharing: Ignored devices list was cleared.


Installing ntfs-3g solves the problem.

 If you'll uninstall ntfs-3g after sucessful redirection but won't restart usb-share service and plug device again it will be again sucessfully redirected (I believe it's due some device cache build by daemon).

But some guys can't install "unsupported applications" and need to use ntfs on their flash drives (e.g. due MAX_FILE_SIZE of fat)


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

spice-client-0.7.2-1.el6.x86_64
spice-xpi-2.4-2.el6.x86_64
kmod-kspiceusb-rhel60-4.9-14.el6.x86_64
spice-usb-share-4.9-9.el6.x86_64


How reproducible:


Steps to Reproduce:
1. sudo /etc/init.d/spiceusbsrvd stop
2. rpm -e ntfs-3g
3. sudo /etc/init.d/spiceusbsrvd start
4. Connect to a windows guest
5. plug in usb drive
  
Actual results:

Unable to mount ... on the client

Expected results:

spice-usb-share deamon should still recognize device and forward it.

Additional info:

RHEVM2.2/El5.6

Comment 2 Alon Levy 2011-02-27 12:50:44 UTC
When you say "Installing ntfs-3g solves the problem." do you mean in the client or guest?

For 6.2 our USB support is going to be based on a different solution, Hans's usb sharing, so closing this bug. Can you please make a test case from it to check on the new usb sharing?

Alon