1
0

iscsisrv 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .TH ISCSISRV 8
  2. .SH NAME
  3. iscsisrv \- iSCSI target: provide remote access via iSCSI
  4. .SH SYNOPSIS
  5. .B ip/iscsisrv
  6. [
  7. .B -dr
  8. ] [
  9. .B -l
  10. .I len
  11. ] [
  12. .B -a
  13. .I dialstring
  14. ]
  15. .I target
  16. .SH DESCRIPTION
  17. .I Iscsisrv
  18. presents the file
  19. .I target
  20. by speaking a restricted form of the iSCSI protocol.
  21. It defaults to communicating on file descriptors 0 and 1,
  22. assumed to be a network connection as passed from
  23. .IR listen (8)
  24. via
  25. .BR /bin/service/tcp3260 .
  26. If the
  27. .B -a
  28. option is supplied, it will instead listen for connections on
  29. the specified dialstring.
  30. .P
  31. Changes are written through to
  32. .I target
  33. unless the
  34. .B -r
  35. option is given.
  36. If
  37. .B -l
  38. is supplied,
  39. .I iscsisrv
  40. will claim that
  41. .I target
  42. is
  43. .I len
  44. bytes long.
  45. .SH EXAMPLES
  46. Export a target,
  47. .LR /dev/sdC0/iscsi-test :
  48. .IP
  49. .EX
  50. disk/iscsisrv /dev/sdC0/iscsi-test
  51. .EE
  52. .PP
  53. Export a dummy target over TCP:
  54. .IP
  55. .EX
  56. disk/iscsisrv -rl 10240000 -a tcp!*!3260 /dev/zero
  57. .EE
  58. .SH SOURCE
  59. .B /sys/src/cmd/ip/iscsisrv.c
  60. .SH SEE ALSO
  61. .IR iscsifs (4)
  62. .SH BUGS
  63. Does not authenticate incoming connections.
  64. .PP
  65. Implements only one connection per session.
  66. .PP
  67. Implements only lun 0.
  68. .PP
  69. Implements immediate execution, whether requested or not.
  70. .PP
  71. Trusts TCP, so does not implement framing (FIM) nor CRCs (digests).