Commit Graph

68 Commits

Author SHA1 Message Date
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
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
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
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
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
5f8aa301ff Merge pull request #86 from datomia/max-unmap-descs
set max unmap block descriptor count to a feasible value
2019-07-04 15:14:20 +08:00
chessman
a83e8ce5c0 REPORT LUNS: truncate response by allocation length 2019-07-03 19:34:49 +03:00
Lei Xue
43deee91c0 Merge pull request #85 from datomia/fix-pool-leak
Fix memory leak
2019-06-30 18:57:44 +08:00
chessman
791e74fea5 don't use pool to allocate buffers 2019-06-28 17:55:51 +03:00
chessman
5582973077 set max unmap block descriptor count to a feasible value 2019-06-28 16:32:26 +03:00
chessman
58fb435e3d add the ability to delete luns at runtime 2019-06-28 13:00:40 +03:00
chessman
93a6cf0c31 add iscsi target driver closer 2019-06-28 13:00:40 +03:00
chessman
f11001ec71 add the ability to add luns dynamically 2019-06-28 13:00:40 +03:00
chessman
0b1ffd5704 provide offset and tl to DataSync 2019-06-27 19:54:16 +03:00
chessman
a5aba61803 move cephstore to a separate package 2019-06-13 13:23:13 +03:00
chessman
8d17243b3a update dependencies 2019-06-12 19:10:59 +03:00
Lei Xue
3a9dceae6e Merge pull request #79 from datomia/thin-provisioned-lun
enable UNMAP when LUN is thin provisioned
2019-06-10 18:17:52 +08:00
chessman
e2b7ea4891 rename: Thinprovisioning -> ThinProvisioning 2019-06-10 12:42:21 +03:00
chessman
c8962b89db MODE SENSE: ALLOCATION LENGTH shouldn't affect a size in response 2019-05-31 14:09:32 +03:00
chessman
c2184d789f add Logical Block Provisioning VPD page (0xB2) 2019-05-30 17:41:10 +03:00
chessman
12b06c21ef UNMAP: propagate request to backing store 2019-05-29 16:14:31 +03:00
chessman
22d47a9212 enable UNMAP when LUN is thin provisioned
- support Block Limits VPD page (0xB0)
 - add UNMAP to REPORT SUPPORTED OPERATION CODES
 - READ CAPACITY(16): set LBPME when Thin provisioning is enabled
 - move Thinprovisioning and BlockShift to config
 - add Unmap to BackingStore
2019-05-28 13:53:06 +03:00
xgwang
29b6c29902 Fix typo of fmt format 2018-05-10 10:30:12 +08:00
Lei Xue
ff9541bc1d Merge pull request #71 from orzhang/ceph
add ceph backing store
2018-03-03 14:32:07 +08:00
Le Zhang
a969203cba add ceph backing store plugin 2018-03-03 14:20:23 +08:00
Donald Tang
6d2a114697 add lock for SCSI Target Service instance 2017-12-10 23:16:48 +08:00
Donald Tang
877baa0fea fix word shift in func BuildSenseData 2017-11-18 10:53:22 +08:00
Lei Xue
fcb96b323d perf2 2017-08-02 19:01:41 +08:00
Lei Xue
4ae643e9f8 perf 2017-07-31 21:47:38 +08:00
Lei Xue
eeb30723c8 fix bugs 2017-07-09 09:33:34 +08:00
Lei Xue
8ce8ade3d4 update ModeSense6 function 2017-07-05 21:23:13 +08:00
Lei Xue
a523a583dc fix some issues for SCSI command 2017-06-24 12:09:05 +08:00
Lei Xue
12a648b5f3 fix sense data issue 2017-06-15 08:16:43 +08:00
Lei Xue
7a2b08ff80 support iscsi task function 2017-06-12 21:06:57 +08:00
payes
ec8ddb74e0 Removing the last element which is nil from the reservation array 2017-02-19 18:30:28 +05:30
Le Zhang
bb67ec66c7 login negotiation and session/conn reinstatment 2016-12-03 04:23:08 +08:00
Lei Xue
d3c3a96920 delete cit to use new gotgt as main cmd, use logrus instead of glog 2016-11-29 11:21:40 +08:00
Lei Xue
18e1419b06 fix verify and add verify test cases 2016-11-28 16:26:05 +08:00
Lei Xue
82ae696822 remove unnecessary code and doc 2016-11-28 14:36:13 +08:00
Lei Xue
05b6f88de4 restruct the backend storage command submit 2016-11-28 11:11:24 +08:00
Lei Xue
ed47ac5ea0 move port interface to scsi package 2016-11-27 17:02:17 +08:00
Lei Xue
bd7193880e basic change for godoc 2016-11-27 13:31:43 +08:00
Le Zhang
82e6d230a2 PR implementation 2016-11-24 23:16:53 +08:00
Lei Xue
f4197d0024 add more comments 2016-11-24 21:02:17 +08:00