Skip to content

Commit ca903e0

Browse files
kvapsclaude
andcommitted
docs(plan): note Phase 10.7 lsblk parser landed (partial — discovery loop pending)
Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
1 parent 249ed73 commit ca903e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PLAN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ satellite-execute model the rest of Phase 10 uses.
740740

741741
**Discovery loop (satellite, periodic + udev-triggered):**
742742

743-
- [ ] Run `lsblk -P -o NAME,KNAME,SIZE,FSTYPE,TYPE,MOUNTPOINT,WWN,MODEL,ROTA,TRAN,PARTLABEL` and filter to `TYPE=disk` with no `FSTYPE`, no `MOUNTPOINT`, no children (no partition table). Cross-check via `pvs --noheadings` (no LVM signature), `zpool list -PHv` (not in any zpool), `drbdmeta show-md` (no DRBD signature), `wipefs -n` (no other signature).
743+
- [~] `lsblk` parser + free-disk filter (2026-05-10, partial). `pkg/satellite/lsblk.go` — `Lsblk(ctx, exec)` runs `lsblk -Pb -o NAME,KNAME,SIZE,FSTYPE,TYPE,MOUNTPOINT,WWN,MODEL,SERIAL,ROTA,TRAN`; `parseLsblkPairs` handles embedded-space MODEL strings via a hand-rolled KEY="value" reader; `IsFreeBlockDevice` enforces `TYPE=disk no FSTYPEno MOUNTPOINT` (pinned by 7 sub-tests). Cross-checks against `pvs --noheadings` / `zpool list -PHv` / `drbdmeta show-md` / `wipefs -n` come with the discovery loop wiring (controller-runtime satellite required).
744744
- [ ] Set-difference against existing `PhysicalDevice` CRDs labelled with this node:
745745
- New free device → `client.Create(PhysicalDevice{name: <node>-<id-slug>, status: ...})`
746746
- Already published, attributes changed (e.g. drive replaced) → `client.Status().Update(...)`

0 commit comments

Comments
 (0)