I noticed that tcmu-runner.x86_64 1.1.3-1.fc25 doesn't have file handlers. It has only
glfs and qcow handlers
/usr/lib64/tcmu-runner/handler_glfs.so
/usr/lib64/tcmu-runner/handler_qcow.so
I compiled tcmu-runner-1.2.0 and it provides user file handlers. I have to run the
tcmu-runner-1.2.0 from command line. Now I am able to create user:file and user:file_async
backstores and use it as lun with iscsi targets and do the i/o.
o- /
.........................................................................................................................
[...]
o- backstores
..............................................................................................................
[...]
| o- block
..................................................................................................
[Storage Objects: 0]
| o- fileio
.................................................................................................
[Storage Objects: 0]
| o- pscsi
..................................................................................................
[Storage Objects: 0]
| o- ramdisk
................................................................................................
[Storage Objects: 0]
| o- user:fbo
...............................................................................................
[Storage Objects: 0]
| o- user:file
..............................................................................................
[Storage Objects: 0]
| o- user:file_async
........................................................................................
[Storage Objects: 1]
| | o- afile0 .....................................................................
[/lio/userasyncfile/afile0 (1.0GiB) activated]
| o- user:glfs
..............................................................................................
[Storage Objects: 0]
| o- user:qcow
..............................................................................................
[Storage Objects: 0]
| o- user:rbd
...............................................................................................
[Storage Objects: 0]
o- iscsi
............................................................................................................
[Targets: 1]
| o- iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.9d806bb0608a
....................................................... [TPGs: 1]
| o- tpg1
...............................................................................................
[no-gen-acls, no-auth]
| o- acls
..........................................................................................................
[ACLs: 1]
| | o- iqn.1991-05.com.microsoft:spardeshi-win1
............................................................. [Mapped LUNs: 1]
| | o- mapped_lun0
................................................................................. [lun0
user/afile0 (rw)]
| o- luns
..........................................................................................................
[LUNs: 1]
| | o- lun0
....................................................................................................
[user/afile0]
| o- portals
....................................................................................................
[Portals: 1]
| o- 0.0.0.0:3260
.....................................................................................................
[OK]
o- loopback
.........................................................................................................
[Targets: 0]
o- vhost
............................................................................................................
[Targets: 0]