Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb_gadget doesn't show up in targetcli list #187

Open
JuniorJPDJ opened this issue Jul 4, 2021 · 1 comment
Open

usb_gadget doesn't show up in targetcli list #187

JuniorJPDJ opened this issue Jul 4, 2021 · 1 comment

Comments

@JuniorJPDJ
Copy link

JuniorJPDJ commented Jul 4, 2021

open-iscsi/rtslib-fb#172

I uncomented it in this line:
https://github.com/open-iscsi/rtslib-fb/blob/33b174f313ba4f8aec2e2a159ff337ae7ca42cb8/rtslib/fabric.py#L470

Even tried to set path at myself like that:

self._path = "%s/%s" % (self.configfs_dir, "usb_f_tcm")

This is how this directory tree looks like:

$ ls /sys/module/target_core_mod/holders/                                                                                                                                                             
iscsi_target_mod
$ modprobe tcm_usb_gadget
$ cd /sys/module/target_core_mod/holders/
$ ls
iscsi_target_mod  usb_f_tcm
$ cd usb_f_tcm/
$ ls
coresize   holders    initsize   initstate  notes      refcnt     sections   taint      uevent
$ targetcli ls
o- / ......................................................................................................................... [...]
  o- backstores .............................................................................................................. [...]
  | o- block .................................................................................................. [Storage Objects: 0]
  | o- fileio ................................................................................................. [Storage Objects: 0]
  | o- pscsi .................................................................................................. [Storage Objects: 0]
  | o- ramdisk ................................................................................................ [Storage Objects: 0]
  o- iscsi ............................................................................................................ [Targets: 0]
  o- loopback ......................................................................................................... [Targets: 0]
  o- vhost ............................................................................................................ [Targets: 0]
  o- xen-pvscsi ....................................................................................................... [Targets: 0]
@maurizio-lombardi
Copy link
Collaborator

The rtslib's author disabled the usb_gadget module several years ago (2013) so I'm not really surprised that now it doesn't work anymore since no one actively maintained it.
I will look at the code to see if I can find out what's broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants