263 Commits

Author SHA1 Message Date
Lei Xue
82b42798ee Merge pull request #103 from jeremy-gill/master
Add support for block device storage endpoints.
2022-12-08 17:22:37 +08:00
Lei Xue
e5d5366e2b Merge pull request #108 from prateekpandey14/handle-connection-state
fix(state): reset the CurrentHostIP on closed iscsi connection
2021-08-17 12:44:56 +08:00
prateekpandey14
22c2b95d8f fix(state): reset the CurrentHostIP on closed iscsi connection
Signed-off-by: prateekpandey14 <prateekpandey14@gmail.com>
2021-08-16 20:54:04 +05:30
Lei Xue
9fe48c7708 Merge pull request #106 from shubham14bajpai/login
Add flag to disable login on multiple hosts
2021-07-01 18:31:44 +08:00
shubham
1beca4d230 add flag to gotgt command
Signed-off-by: shubham <shubham.bajpai@mayadata.io>
2021-07-01 15:12:26 +05:30
shubham
b278ab3133 Add flag to disable login on multiple hosts
Signed-off-by: shubham <shubham.bajpai@mayadata.io>
2021-06-29 21:15:54 +05:30
Jeremy Gill
a8468ecec8 Resolve travis-ci / gofmt issue with common.go 2020-12-15 11:26:26 -05:00
Lei Xue
8b433a89c6 Merge pull request #104 from payes/fix-race
fix(stats): concurrent map iteration and map write
2020-12-08 12:02:56 +08:00
Payes Anand
e5e3c09feb nit: remove unnecessary if-else block
Signed-off-by: Payes Anand <payes.anand@mayadata.io>
2020-12-06 13:44:13 +05:30
Payes Anand
ec418673cb fix: concurrent map iteration and map write
Signed-off-by: Payes Anand <payes.anand@mayadata.io>
2020-12-05 14:51:52 +05:30
Jeremy Gill
228e53351d Add support for block device storage endpoints. 2020-09-04 13:28:51 -04:00
Lei Xue
f4d57bede2 Merge pull request #102 from carmark/version
add version
2020-07-14 22:11:11 +08:00
Lei Xue
2e5cea1bd0 add version
Signed-off-by: Lei Xue <vfs@live.com>
2020-07-14 22:04:20 +08:00
Lei Xue
db3093d24b Update .travis.yml
remove golang 1.12 version in travis-ci
2020-07-14 21:51:25 +08:00
Lei Xue
c08da2d785 Update .travis.yml
remove go dep
2020-07-14 21:40:45 +08:00
Lei Xue
be28a04ce2 Merge pull request #101 from whywaita/feat/go-modules
switch Go Modules
2020-07-14 20:33:56 +08:00
whywaita
361386bdf9 Makefile use Go modules 2020-07-14 15:27:00 +09:00
whywaita
0771f0c303 bump up buildable version 2020-07-14 15:16:26 +09:00
whywaita
1a955929ad switch Go modules 2020-07-14 15:13:42 +09:00
Le Zhang
48fe2a9b6e Merge pull request #100 from hugelgupf/security
iscsit: support AuthMethod=None security negotiation
2020-01-22 15:15:03 +08:00
Chris Koch
6af024c2e3 iscsit: support AuthMethod=None security negotiation
Signed-off-by: Chris Koch <chrisko@google.com>
2020-01-21 22:45:18 -08:00
Lei Xue
2f1d32710a Merge pull request #97 from utkarshmani1997/rmclose
Add unit test and rm conn.close
2019-11-28 17:54:59 +08:00
Utkarsh Mani Tripathi
77d9428ea3 address review comments
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-28 14:14:29 +05:30
Utkarsh Mani Tripathi
901974d8c4 remove conn.close
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-28 13:55:36 +05:30
Utkarsh Mani Tripathi
f14ea31cbb add unit test to test behaviour on start stop
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-28 13:43:57 +05:30
Utkarsh Mani Tripathi
e73507f461 add target to install dependency
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-28 13:20:58 +05:30
Lei Xue
c2d6c776d4 Merge pull request #95 from utkarshmani1997/configuredIP
Listen on configured IP and close conn on error
2019-11-26 21:29:24 +08:00
Utkarsh Mani Tripathi
7f31722587 Listen on configured IP
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-26 17:45:09 +05:30
Lei Xue
e67c47fb71 Merge pull request #94 from utkarshmani1997/jiva-integration
bump go version and use xenial as dist
2019-11-22 09:41:00 +08:00
Utkarsh Mani Tripathi
b264cf3f15 fix partition creation step
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-21 19:34:10 +05:30
Utkarsh Mani Tripathi
dbb4ad7eb2 fix gofmt error
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-21 19:27:01 +05:30
Utkarsh Mani Tripathi
dcc4405e66 bump go version and use xenial as dist
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-21 19:07:27 +05:30
Lei Xue
dc38cd4431 Merge pull request #93 from utkarshmani1997/jiva-integration
integrate openebs/jiva with gotgt
2019-11-21 19:15:33 +08:00
Utkarsh Mani Tripathi
583e9b3a4a Add option to disable multipath and other fixes
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-21 13:42:32 +05:30
Utkarsh Mani Tripathi
25f0038456 Add tgtNSG to fullfeaturephase and tgtTrans to true
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-20 17:03:58 +05:30
Utkarsh Mani Tripathi
d7891b1f68 Implement stats and resize and fix remote backing store apis
- Convert constant to var so that it can be configured from backend
- Add options to disable persistent reservation and ORWrite16 commands

Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-20 14:34:35 +05:30
Utkarsh Mani Tripathi
d7caf89610 Implement InitSCSILuMap func for jiva
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-19 10:19:58 +05:30
Utkarsh Mani Tripathi
1b02c7897e fix error handling for unsupported commands
- Respond with failure for unsupported task management commands
- Increase MaxRecvDataSegmentLength to 65536, to match FirstBurstLength

Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-18 18:20:59 +05:30
Utkarsh Mani Tripathi
64deda8106 convert initialR2T to always true for datadigest
tttttt-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-18 18:10:53 +05:30
Utkarsh Mani Tripathi
3b8e996a6c Reply with LUN busy when there is a read/write error from backend
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-18 16:30:46 +05:30
Utkarsh Mani Tripathi
a8cc3e6db2 improve logs and add client (initiator) status
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-18 16:25:55 +05:30
Utkarsh Mani Tripathi
e5339f347a Add nil pointer check for InSDBBuffer
- Gotgt was crashing for few opcodes (sg_inq (sg3-utils)) because InSDBBuffer
  was not initialized for such opcodes (Need help)

Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-18 15:56:34 +05:30
Utkarsh Mani Tripathi
1dbc82435f iSCSI target fixes for iSCSIResiduals tests causing libiscsi test suite to hang
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-18 15:16:41 +05:30
Utkarsh Mani Tripathi
f3ef8c973d add initial implementation of remote backing store
This commit implement the BackingStore Interface for remote backing
store.

Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-11-18 14:52:03 +05:30
Le Zhang
5d3d165c74 Merge pull request #91 from utkarshmani1997/fix-tpgs
fix the scsi inquiry command for TPGS
2019-11-18 15:32:48 +08:00
Utkarsh Mani Tripathi
4f270eb4d8 fix the scsi inquiry command for TPGS
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
2019-09-29 07:26:53 +05:30
Lei Xue
9a858d2e37 Merge pull request #92 from carmark/ci
update ceph-deploy version to v2.0.2
2019-09-29 09:50:28 +08:00
Lei Xue
8be0578d4c update ceph-deploy version to v2.0.2 2019-09-29 09:40:49 +08:00
Lei Xue
336465795f Merge pull request #88 from hugelgupf/nocgo
Add ability to build gotgt without cgo
2019-07-30 09:02:07 +08:00
Chris Koch
f92573fd28 Add ability to build gotgt without cgo
Signed-off-by: Chris Koch <chrisko@google.com>
2019-07-29 12:55:30 -07:00