Repository navigation
fix(devices): hide system loop and busy volumes - #2105
Merged
Merged
Conversation
Assisted-by: MiMo-V2.6-Pro
Any message containing "busy" became "The item is in use", which also caught device labels and mount paths in unrelated failures and overrode typed GIO errors. Match the system's busy phrases on untyped failures only.
The exclusive-open probe ran on the UI thread for every unmounted volume on each sidebar rebuild. Cache it behind the worker that already reads crypto hints. Hide a loop only when GVfs does not mark it for automount, which it does for loops this user attached, so a disk image attached with udisksctl stays mountable from Devices.
wmfeht
pushed a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Nov 9, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RQ23ADLhhcsMQ5fRCT8Evz
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.
Description
Supersedes #2104 by @zhouwg. Their commit is kept on this branch, with
mainmerged and the review fixes on top; the fork does not allow maintainer pushes, so the fixes could not land there.On a live system, Devices lists volumes that can never be mounted: the root image's loop device and the boot medium, both already held by the kernel, so mount and eject fail with
EBUSY. This hides unmounted volumes the system holds:udisksctl loop-setupstays listed and mountable;EBUSY. The probe runs off the UI thread through the cache the crypto hints already use, now shared asdevices/probe_cache.rs.Mount, unmount and eject failures that UDisks or eject(1) report as an untyped "busy" error now show the existing "The item is in use" message instead of backend text.
Changes relative to #2104, detailed in the review: the loop rule no longer hides loops the user attached, the device probe no longer opens device nodes on the UI thread, and the busy match is limited to whole phrases on untyped failures so a volume label such as
BUSYBOXcannot trigger it.Not verified: the live-ISO scenario itself, which could not be reproduced during review.
Visual evidence
N/A. The before and after screenshots from the original report are in #2104.
How to test
udisksctl loop-setup -f disk.isoand open Strata.Expected result: On the live system, Devices no longer lists the root image loop or the boot medium, and the two data disks are still listed. On the installed system, the attached image is listed in Devices and mounts when clicked.
Related issue
Supersedes #2104. No issue was filed for the original report.