17 Commits

Author SHA1 Message Date
Lei Xue
76ab15b0df feat: add S3-compatible object storage backend
Add a new backend store that enables iSCSI targets backed by
S3-compatible object storage (AWS S3, MinIO, Ceph RGW, etc.).

The implementation uses a chunked storage strategy where the virtual
block device is divided into fixed-size chunks (default 4 MiB), each
stored as an independent S3 object. This enables efficient random
read/write access on top of object storage.

Key features:
- Chunked storage with configurable chunk size
- Sparse device support (unwritten chunks treated as zeros)
- Concurrent multi-chunk I/O via errgroup
- Per-chunk locking for safe read-modify-write
- AWS SDK v2 with default credential chain
- In-process gofakes3 test server (no Docker needed)
- 12 unit tests + 2 integration tests

Also updates CI workflow to run S3 backend tests and updates
README with S3 backend documentation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 16:22:57 +08:00
Lei Xue
93e1476a0f feat: implement cmd management for targets, LUNs, and TPGTs (fixes #36)
- Fix target delete URL path mismatch (/targets/ -> /target/)
- Implement target create/delete server handlers with proper validation
- Add DeleteTarget method with force flag and mutex locking to SCSITargetService
- Implement full LU management: create/list/delete through CLI, client, and server
- Add TPGT list command to show target portal group tags
- Add unit tests for target/LU router handlers and SCSI service

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 20:30:47 +08:00
Lei Xue
00cfac3d24 optimize the perf and support more features 2026-03-14 11:45:35 +08:00
Wenhua Shi
a6cf150e95 fix some issues 2023-04-17 19:29:01 +08:00
Lei Xue
d94641a8d7 add target port as command flag 2022-12-13 09:49:34 +08:00
Lei Xue
8a3e19f0c9 fix daemon 's host flag 2022-12-10 22:05:19 +08:00
Lei Xue
d92d540c52 gofmt -s 2022-12-10 21:05:52 +08:00
Lei Xue
698eb1bb40 fmt/gomod update 2022-12-08 17:27:11 +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
Lei Xue
2e5cea1bd0 add version
Signed-off-by: Lei Xue <vfs@live.com>
2020-07-14 22:04:20 +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
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
c85b0f045f comment runtime.GOMAXPROCS to avoid concurrent issue 2016-12-11 20:56:12 +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
bd7193880e basic change for godoc 2016-11-27 13:31:43 +08:00
Lei Xue
f97ab027de add basic command framework and apiserver 2016-08-27 20:07:03 +08:00