Commit Graph

34 Commits

Author SHA1 Message Date
Lei Xue
00cfac3d24 optimize the perf and support more features 2026-03-14 11:45:35 +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
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
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
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
chessman
5582973077 set max unmap block descriptor count to a feasible value 2019-06-28 16:32:26 +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
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
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
d3c3a96920 delete cit to use new gotgt as main cmd, use logrus instead of glog 2016-11-29 11:21:40 +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
Le Zhang
505acf8f45 fix normal inq vid/pid/rev issue 2016-10-19 21:24:34 +08:00
Le Zhang
547faf684d iSCSI/SCSI multi port/ALUA support
fix ALUA flag issue
fix NNA flag issue
fix fixed format sense data builder issue
2016-10-18 16:59:25 +08:00
Le Zhang
a51a1d8d00 inquiry page00h page80h page83h 2016-10-10 12:13:51 +08:00
Le Zhang
681f1003b9 bunch of bug fixes with dummy lun0 feature
1) add dummy lun0
2) fix report lun
3) fix inquiry command with correct version
2016-10-08 12:40:24 +08:00
Lei Xue
4a1dcbfc27 return sense data while error 2016-10-06 12:09:24 +08:00
Le Zhang
c9b93c7527 mapping lun and fix portal management 2016-10-04 13:39:55 +08:00
Lei Xue
d6108f0a88 fix several bugs during read/write operations 2016-09-25 18:44:34 +08:00
Lei Xue
aedc09021f fix bugs and make it run basically 2016-08-27 20:07:51 +08:00
Lei Xue
c5d68b38b2 run the basic process with iscsi driver 2016-05-02 22:11:33 +08:00
Lei Xue
d770eb33ac init commit for spc/sbc 2015-12-27 20:44:54 +08:00
Le Zhang
5f197d8035 make it compileable. 2015-12-16 00:04:55 +08:00
Lei Xue
76a5628e98 general framework for SBC/SPC 2015-12-14 22:28:00 +08:00
Lei Xue
a9a7d63c20 init commit 2015-12-14 10:23:35 +08:00