Repository navigation
feat(storage): a ZFS tab with the pools, datasets and snapshots (read only) - #157
Merged
Merged
Conversation
… only) Shows on a box that has ZFS with at least one pool, last in the Storage manager. Per pool: health (green only for ONLINE, grey when the state could not be read), drives, last scan, capacity, live read/write rates; the datasets as a tree with a used bar and mount point; the snapshots of a dataset when its list is opened. Asks the box only while the tab is on show. Needs CasaOS-LocalStorage#27; silent without it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A "ZFS" tab in the Storage manager, first step, read only (design:
docs/superpowers/specs/2026-11-09-zfs-storage-design.mdin ReCasaOS/CasaOS; request: ReCasaOS/CasaOS discussion 66). Needs ReCasaOS/CasaOS-LocalStorage#27 forGET /v1/disks/zfs,/zfs/snapshotsand/zfs/io; without it the tab simply does not appear.availablewith at least one pool. No ZFS, no tab, no message.status:/action:lines (English, as ZFS prints them) and the tree of vdevs with their error counters.en_US.jsonandfr_FR.json, with a test that every key the ZFS code uses is in both and keeps its placeholders.Tests:
ZfsPanel.spec.js(healthy, degraded, unknown state, ZFS not answering, snapshots on demand, rates, polling stops when the tab is left, keys) andzfs.spec.js(tags, thresholds, tree order, mount text, scan sentences, rates, vdev tree). Full suite green (182 files), eslint 0 errors on the changed files, Node 22 + pnpm.Not checked: the layout in a browser (no box with ZFS here, and the mock server has no ZFS route); the accompanying LocalStorage fixtures are partly written from the OpenZFS docs, see that PR.