Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track loop devices and their backing media #127

Open
dankamongmen opened this issue Nov 29, 2020 · 1 comment
Open

Track loop devices and their backing media #127

dankamongmen opened this issue Nov 29, 2020 · 1 comment
Assignees
Labels
core non-ui code, common code shared by all uis enhancement
Milestone

Comments

@dankamongmen
Copy link
Owner

See #125 . We need be tracking the loop devices, and what backs them. When we do certain kinds of device lookups, if we're provided a loop, we ought instead return the backing media (but not all the time, of course).

@dankamongmen dankamongmen added enhancement core non-ui code, common code shared by all uis labels Nov 29, 2020
@dankamongmen dankamongmen added this to the 1.3 milestone Nov 29, 2020
@dankamongmen dankamongmen self-assigned this Nov 29, 2020
@dankamongmen
Copy link
Owner Author

I think we are tracking this. When I run with a block device connected to a loop device, the loop device shows up just fine, with the backing device as its "model name" (see attached image). The problem is that the underlying device doesn't show up as mounted.

2020-11-30-124635_802x902_scrot

This fundamental weirdness comes down to /proc/mounts showing the loop device, and mount showing the underlying device. Our users will presumably expect to see the underlying device (and the loop device) as related to the mount point. IMHO, the perfect situation would show:

  • /dev/sdo1 as mounted on /media/usb, perhaps indicating that it is by way of loop0
  • loop0 as mounted on /media/usb and representing /dev/sdo1 (this is happening already)
  • /media/usb as being /dev/loop0 is fine (this is happening already)

2020-11-30-124642_802x902_scrot

so all we really need do is link the underlying loop device to the mountpoint in a unidirectional fashion. I.e. you ought be able to unmount the filesystem from the underlying device, and have it run umount /media/usb, naturally destroying the loop0 device and dissolving the mount relationship.

a bigger problem is that we're not even indicating that an ext4 filesystem lives on the underlying device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core non-ui code, common code shared by all uis enhancement
Projects
None yet
Development

No branches or pull requests

1 participant