linux-usb-gadgets / libusbgx

C library encapsulating the Linux kernel USB gadget configfs userspace API functionality
GNU General Public License v2.0
216 stars 72 forks source link

What about inquiry_string? #86

Closed NekoCWD closed 9 months ago

NekoCWD commented 9 months ago

Mass storage have one more option called "inquiry_string"

It made for setting custom scsi name for mass storage.

It shown as device name in my BIOS and in dmesg

There are example: I runed

echo "MEOW" > inquiry_string

Before it:

[timesnap] scsi 6:0:0:0: Direct-Access     Linux    File-Stor Gadget 0607 PQ: 0 ANSI: 2
[timesnap] scsi 6:0:0:1: CD-ROM            Linux    File-Stor Gadget 0607 PQ: 0 ANSI: 2

After it:

[timesnap] scsi 6:0:0:0: Direct-Access     MEOW                           PQ: 0 ANSI: 2
[timesnap] scsi 6:0:0:1: CD-ROM            MEOW                           PQ: 0 ANSI: 2
pabs3 commented 9 months ago

A pull request for this would be welcome, but we don't yet have enough resources to implement this ourselves.

-- bye, pabs

https://bonedaddy.net/pabs3/

NekoCWD commented 9 months ago

A pull request for this would be welcome, but we don't yet have enough resources to implement this ourselves. -- bye, pabs https://bonedaddy.net/pabs3/

Thanks for quick answer. I made PR #87

NekoCWD commented 9 months ago

Merged