Repository navigation
Explain snapshot failures caused by regular directories - #11287
hussainanjar wants to merge 1 commit into
Conversation
johnpippett
left a comment
There was a problem hiding this comment.
I recommend this change based on the automated checks below. This review used Codex assistance.
The change adds guidance when Snapper reports that .snapshots is not a Btrfs subvolume. It keeps the original error and exit status. It does not start cleanup for the failed configuration.
Source commit: 880b84b580ee5b64ee3f36b0a416c1a81d8f6211.
Base commit: b5589faaf80c6f87c07d4560fca37c4a81722f28.
The earlier CLI suite, focused snapshot suite, and Bash syntax checks returned status 0 on both commits. All 22 independent test cases gave the expected results: 11 cases per commit. These included unrelated errors, missing Snapper, multiple configurations, and a failed configuration-list command.
The tests used the real snapshot script with a Snapper substitute. Private Bubblewrap namespaces kept the source read-only and excluded the host desktop and network.
The full shell suite did not complete because the test environment lacked dependencies. No real Btrfs volume or snapshot operation was used. A failed configuration-list command produces the same existing misleading message on both commits.
Before submission, the source and base commits still matched these results. The tests were not repeated for this submission.
|
@dhh @omarchybot the directory explanation from this PR is in #21027.
Please consider closing this as superseded only after #21027 is accepted. Leaving the close to you. |
When a backup restore leaves
.snapshotsas a regular directory,omarchy snapshot createstops with Snapper's opaque Btrfs error. Add guidance to locate the affected config's subvolume, preserve the directory's contents, and recreate it as a Btrfs subvolume before retrying.Keep the original error and exit status, skip cleanup after failed creation, and leave unrelated failures without subvolume repair advice.
Fixes #11100.
Validation:
./test/cli, Bash syntax checks, andgit diff --checkpass../test/all(236 shell test files). Five environment/artifact failures passed on focused reruns after supplying theomarchy-pkgsandomarchy-isocheckouts, unsettingNO_COLOR, and removing generated Python bytecode.runtime-smoke-test.shfails its duplicate IPC-handler check on this two-monitor session. The same check also fails on a clean upstreamquattrocheckout atb5589faa.