Commit Graph
4 Commits
Author SHA1 Message Date
pingqiu 60e482f978 blockvolume: derive the default Go memory limit from its cgroup 2026-11-30 21:40:44 -08:00
pingqiu 8897b14971 feat: stop restarted holders after recorded revocation 2026-11-29 15:51:36 -08:00
pingqiuandClaude Opus 5.5 400cf3edf7 fix(blockvolume): the template passes --volume-id=%i; guests are an observation, not complete detection
Review follow-up. The template unit takes the volume id from its
instance name, so a settings file cannot name another volume (a fourth
per-instance directive, kept by the drift test). /status/guests and its
schema say what it is: the counted frontends (NVMe/TCP, iSCSI) only; an
absent frontend is not served or not counted; a vanished host stays
counted until TCP closes; 0 is not proof that nothing uses the volume.
The endpoint test's callbacks use atomics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:31 -08:00
pingqiuandClaude Opus 5.5 a321c6bee4 feat(blockvolume): report connected guests; per-volume template unit
What volume start and volume stop need, before the commands.

/status/guests?volume=<v> reports the guests connected now through each
frontend served: NVMe/TCP hosts (live admin controllers) and iSCSI
initiators (Normal sessions past login; Discovery sessions do not count),
read at request time, and their sum.

deploy/systemd/sw-blockvolume@.service runs one volume per instance
from /etc/sw-block/volumes/<volume>.env with its own state directory;
apart from three per-instance directives it is sw-blockvolume.service,
and a test keeps the two the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:31 -08:00