On 2012-01-12 17:31, Hans de Goede wrote: > This patch adds the posibility to filter out certain devices from redirecion. > To use this pass the filter property to -device usb-redir. The filter > property takes a string consisting of filter rules, the format for a rule is: > <class>:<vendor>:<product>:<version>:<allow> > > -1 can be used to allow any value for a field. > > Muliple rules can be concatonated using | as a separator. Note that if > a device matches none of the passed in rules, redirecting it will not be > allowed! >
Hmm, '|' makes quoting mandatory. And the :<allow> is also not that beautiful IMHO. What about [+]|-<class>:<vendor>:<product>:<version>[/[+]|-<class>:...] ? Optional '+' means allow, '-' disallow. An empty field could also serve as wildcard (instead of explicit -1 which would collide with disallow). Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux