From 1995f39f1dbf4d5b9104810fe027a7e53412f4f2 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 26 Nov 2026 00:41:29 -0800 Subject: [PATCH] docs: the snapshot list's answer, and snapshot-delete's ops chunk snapshots answers a JSON array of {name, root[, dependents]} in name order; an entry has no state or cut position. snapshot-delete answers {"volume":"-","name":...,"state":"absent"}. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/standalone-deployment.md | 2 ++ seaweed-block/docs/volume-lifecycle.md | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/seaweed-block/docs/standalone-deployment.md b/seaweed-block/docs/standalone-deployment.md index 1295526a35..cd5e464b7d 100644 --- a/seaweed-block/docs/standalone-deployment.md +++ b/seaweed-block/docs/standalone-deployment.md @@ -525,6 +525,8 @@ sw-block ops chunk snapshots --master MASTER --volume v1 --chunk-filer FILER sw-block ops chunk snapshot --volume v1 --name before-upgrade --status-addr STATUS # take one now ``` +The list is a JSON array, one entry per published snapshot in name order: `[{"name":"sched-20261120T031204Z","root":"<64 hex>"}]`, with `"dependents":["v2-"]` on a snapshot that restore targets depend on. + ### Deleting snapshots and getting space back Space comes back in two steps. Neither is immediate. diff --git a/seaweed-block/docs/volume-lifecycle.md b/seaweed-block/docs/volume-lifecycle.md index 1be1e95fc0..bb59650b4f 100644 --- a/seaweed-block/docs/volume-lifecycle.md +++ b/seaweed-block/docs/volume-lifecycle.md @@ -420,7 +420,12 @@ sw-block ops chunk snapshots --master MASTER --volume v1 --chunk-filer FIL sw-block ops chunk snapshot-delete --master MASTER --volume v1 --chunk-filer FILER --name s1 ``` -Each delete answers `{"volumeID":"v1","name":"s1","state":"deleting"}`. +`snapshots` answers a JSON array with one entry per published snapshot, in name +order: `[{"name":"s1","root":"<64 hex>"}]`. An entry also lists +`"dependents":["v2-"]` while restore targets depend on that snapshot. An +entry has no state or cut position: a listed snapshot is published. Each delete +answers `{"volume":"v1-","name":"s1","state":"absent"}`. Here `v1-` is +the volume's store directory: its name and the first 8 hex digits of its layout id. **4. Delete the volume:**