feat(clawdie): ZFS-aware storage strategy + optional pool creation #51

Merged
clawdie merged 1 commit from feat/clawdie-zfs-strategy into main 2026-06-14 00:32:32 +02:00
Owner

clawdie now picks storage per host:

  • FreeBSD — ZFS required (datasets under the pool)
  • Linux + ZFS + pool — datasets under the pool
  • Linux without ZFS — plain-dir fallback; reports ZFS benefits (snapshots/rollback, quotas, send/recv) + any spare disks
  • --create-pool /dev/DEV — runs zpool create (needs --pool NAME)

Destructive op, guarded: pool creation is refused unless the disk is detected empty (no partitions/filesystem/mount, not the root disk) or --force, and only with --yes. discover now lists block devices with candidacy + reasons.

New disk-candidacy parser + storage resolver unit-tested (13 tests; clippy -D warnings + fmt clean). The actual zpool create path is validated on real hosts.

`clawdie` now picks storage per host: - **FreeBSD** — ZFS required (datasets under the pool) - **Linux + ZFS + pool** — datasets under the pool - **Linux without ZFS** — plain-dir fallback; reports ZFS benefits (snapshots/rollback, quotas, send/recv) + any spare disks - **`--create-pool /dev/DEV`** — runs `zpool create` (needs `--pool NAME`) **Destructive op, guarded:** pool creation is refused unless the disk is detected empty (no partitions/filesystem/mount, not the root disk) or `--force`, and only with `--yes`. `discover` now lists block devices with candidacy + reasons. New disk-candidacy parser + storage resolver unit-tested (13 tests; clippy `-D warnings` + fmt clean). The actual `zpool create` path is validated on real hosts.
clawdie added 1 commit 2026-06-14 00:32:29 +02:00
feat(clawdie): ZFS-aware storage strategy + optional pool creation
Some checks failed
CI / rust (pull_request) Has been cancelled
CI / markdown (pull_request) Has been cancelled
325951be5c
clawdie chooses storage per host:
- FreeBSD: ZFS required (datasets under the pool)
- Linux with ZFS + a pool: datasets under the pool
- Linux without ZFS: plain-dir fallback, reporting ZFS benefits + spare disks
- --create-pool /dev/DEV runs `zpool create` (needs --pool NAME)

Pool creation is destructive and guarded: refused unless the disk is detected
empty (no partitions/filesystem/mount, not the root disk) or --force is given,
and only with --yes. `discover` lists block devices with candidacy. New
disk-candidacy parser + storage resolver are unit-tested (13 tests).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
clawdie merged commit 341a594ead into main 2026-06-14 00:32:32 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: clawdie/colibri#51
No description provided.