dom0+vm/qvm-usb: cosmetic: removed debugging code, adjusted fixmes

This commit is contained in:
Alexandre Bezroutchko 2012-10-09 23:33:17 +02:00
parent c71e52a471
commit ca57a67fd0
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
## running in dom0.
##
# FIXME: Ignore USB hubs and other wierd devices.
# FIXME: Ignore USB hubs and other wierd devices (see also in usb_remove).
[ "$DEVNUM" = "001" ] && exit 0
[ "$DEVTYPE" != "usb_device" ] && exit 0

View File

@ -18,8 +18,9 @@ if len(frontend)!=2:
backend=sys.argv[4]
# FIXME command injection
# FIXME: command injection
os.system("xenstore-write /local/domain/%s/backend/vusb/%s/%s/port/%s %s"
% (backend, domain, controller, port, device))
# FIXME: should this happen in the backend domain?
vusb_util.bind_usb_device(device)