Commit Graph
17 Commits
Author SHA1 Message Date
Samuel Cui c3bcd856aa feat!: stream caller-owned items and reduce the content options
Replaces the streaming request/result API with caller-owned items and
consolidates the content options, following the Job execution performance
design.

- `Item`, `BatchSource` and `Run` replace `StreamRequest`, `StreamResult`,
  `StreamSource`, `StreamSink` and `RunStream`. Every accepted item receives
  exactly one terminal callback from a single goroutine and without doing
  I/O; an item ACP cannot process reports `Failed`, and a completion carries
  one outcome per requested target in request order with its error identity
  preserved. A graceful stop stops feeding, finishes the items in flight and
  reports the rest, and a hard stop abandons per-item accounting.
- One `HashPolicy` replaces `WithHash`, `WithSignatureCache` and
  `ForceRehash`. A stored hash is read whenever the policy uses the cache,
  reused only where the policy allows it, and refreshed only when it differs.
- A source-only `WithReadMode` selects buffered (the default) or mapped
  reads, and buffered sources open with `O_NOATIME` where the platform has
  it. `LinearDevice` keeps request ordering, append targets and abort-on-error
  but no longer selects the read mode.
- `Overwrite` becomes a target-device option, `WithReadBuffer` sets the read
  buffer, and `SelectFiles` returns the entries the command line copies,
  replacing `AccurateJob`, `WildcardJob` and the walk options.
- Copy consumers share one reference-counted chunk buffer each from a common
  pool, and the per-item write goroutines finish before the result channel
  closes, so no finished item can be dropped.

The command line tools, the documentation and the test suite move with the
API, including semantic tests for the callback contract, the stop and drain
paths, the hash policy matrix and the read modes.
2026-09-19 02:03:34 +08:00
Samuel N Cui 259f124032 fix: harden copy pipeline and testing 2026-07-11 20:45:07 +08:00
Samuel N Cui 207085ec89 feat: change path api 2026-03-13 21:14:47 +08:00
Samuel N Cui 8a8f54c525 feat: add ignore paths 2026-03-11 01:23:37 +08:00
Samuel N Cui 689959e29f feat: add acp-rewrite 2026-03-11 00:55:46 +08:00
Samuel N Cui 4a3bab1fbb feat: add sys attr copy and one to one copy 2026-03-10 21:08:00 +08:00
崔竞宁 290748251e feat: rename to samuelncui 2023-09-22 13:50:57 +08:00
崔竞宁 8502bf37dc feat: add wildcard job 2023-05-07 16:19:11 +08:00
崔竞宁 c5de5e5554 feat: add bad dst check 2022-12-12 22:46:14 +08:00
崔竞宁 ae151264e7 feat: add to json string 2022-12-12 01:05:31 +08:00
崔竞宁 9fa93b905b feat: add event 2022-12-07 19:50:48 +08:00
崔竞宁 a63d804054 feat: change report 2022-09-14 12:06:53 +08:00
崔竞宁 7e7d887b2e feat: add continue 2022-09-14 00:53:10 +08:00
崔竞宁 5ec051f97a feat: add tape drive 2022-09-09 17:53:15 +08:00
崔竞宁 47c9852741 feat: with multi threads 2022-09-08 20:53:42 +08:00
崔竞宁 de977af2e8 feat: readme doc 2022-09-08 14:02:42 +08:00
崔竞宁 43289e4b94 feat: init for use 2022-09-07 22:40:45 +08:00