borg-backup-ui
borg-backup-ui copied to clipboard
Handle filesystem I/O errors during restore-test repository probing
A Restore Test crashes with an uncaught OSError from Path.is_dir() when an Unraid USB device has been disconnected without unmounting and its stale mount returns EIO (errno 5).
Expected behavior:
- Treat a local filesystem access error during repository availability probing as an unavailable repository.
- Persist a normal report with a failed repository-reachability step, untested subsequent steps, and actionable mount/device guidance instead of a traceback.
- Keep the existing unavailable exit code, worker/supervisor protocol, and cleanup behavior.
- Do not start Borg or access passphrase material after the probe fails.
Validation: reproduce EIO and related path-access errors, missing paths, the normal reachable path, SSH bypass, and resource-worker report publication. Add a user-facing release-note fragment.
This follow-up will ship with the current Restore Tests changes in PR #611.