Repository navigation
home/machine identity and project completeness: detect what cannot work - #753
Draft
mengmengmengqiang wants to merge 4 commits into
Draft
mengmengmengqiang wants to merge 4 commits into
mengmengmengqiang wants to merge 4 commits into
Conversation
…pleteness c3: label data volumes and report orphan/unlabelled volumes c4: cross-check home.layout id against machine and sandbox records c5: detect worker roots by content and refuse adopt c6: home init --adopt for a data home without a marker c7: require a decodable project record for local SQLite projects c8: doctor --fail-on, init count checks and project prune
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.
What
Fixes the detection/identity failures from layerfs-project#752 (c2–c8):
provider_namevalidates the recordedvm_nameagainst the current home (legacy 8-hex andlfs-names accepted), andNEW_NAME_MAXbecomes 38.layerfs.home/layerfs.machinelabels;doctorreports orphan, wrong-home and unlabeled volumes on the built-indockernode.home.layoutcross-checks thelayerfs.jsonid against machine and sandbox records (three sandbox naming eras), after the scan's stability gate, with nomvadvice.Layout::WorkerRoot), refused by open/ensure and the doctor, and never adoptable.layerfs.jsonisDataWithoutMarker;home init --adoptwrites the marker without touching data, deriving the id prefix from records and auditing read-only.manifest/installed;project.get/list/doctorshowbroken/failedand point atproject delete.doctor --fail-on never|error(default never), unreadable workspace records becomenot_checked, missing-home capacity isunknown, per-check backup deadlines, Init count cross-check, and the newproject.prunefor a directory with no record.Verification
cargo check -p layerfs-home -p layerfs-machine -p layerfs-sandbox, unit tests.cargo check -p layerfs-platform -p layerfs-control -p layerfs-api --features machine; platform/control tests.doctor_host17 passed; home/machine tests.home_layout12 +doctor_host18 passed; layerfs-home tests.home_layout21 +doctor_host19 +home_calls10 + contract 11 passed.doctor_targets7,project_state8, contract 11.cargo check --workspacepasses; the container cannot run all mount/FUSE/linker-heavy tests (pre-existing environment limits), so the scoped suites above are the evidence.Notes
fix/project-manifest-detection, baselayerfs_v2_0_0.