Re: [PATCH v7] usbip: make remote list honor parsable output
From: Shuah Khan
Date: Fri Nov 20 2026 - 18:10:48 EST
On 11/20/26 13:52, Jason Colapietro wrote:
Hey Shuah,
The issue is pretty simple. |usbip list -p -r <host>| shows the device and exits with 0, but it ignores |-p|. So if a script is looking for |busid=| to figure out what to attach, it comes back empty even though the device is there. You can still attach it by hand.
With the patch I got |busid=2-1#usbid=46f4:0001#| from that same command.
Thank you.
Please don't top post - it is lot harder to follow the thread.
$ /opt/usbip-before/usbip list -p -r 192.0.2.1
Exportable USB devices
======================
- 192.0.2.1
2-1: QEMU : QEMU USB mass storage (46f4:0001)
: /sys/devices/pci0000:00/0000:00:03.0/usb2/2-1
: (Defined at Interface level) (00/00/00)
exit=0
After, on the same client against the same host:
$ /opt/usbip-after/usbip list -p -r 192.0.2.1
busid=2-1#usbid=46f4:0001#
exit=0
This change removes lot of details about the device. How is
this helpful other than for a script that could be written
to get these two pieces of information: 2-1 46f4:0001
from the output.
I don't think this patch helps, it makes the display harder
to understand. I won't be taking this patch.
thanks,
-- Shuah