After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769461 - Document the meaning of the “Auto-clear” slider for loopback devices
Document the meaning of the “Auto-clear” slider for loopback devices
Status: RESOLVED FIXED
Product: gnome-disk-utility
Classification: Core
Component: general
3.20.x
Other Linux
: Normal enhancement
: ---
Assigned To: Kai Lüke
gnome-disk-utility-maint
Depends on:
Blocks:
 
 
Reported: 2016-08-03 10:44 UTC by Will Thompson
Modified: 2017-04-03 09:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add tooltip text to Auto-clear switch (1.33 KB, patch)
2017-03-25 13:40 UTC, Kai Lüke
none Details | Review

Description Will Thompson 2016-08-03 10:44:19 UTC
When you attach a disk image to a loopback device (app menu → Attach Disk Image…), the resulting pane for the device has the following fields in the header

        Size: ...
Partitioning: ...
  Auto-clear: [ ON ### ]
Backing File: ~/Downloads/foo.img

They're all self-explanatory except the Auto-clear flag, which only appears for loopback devices. By reading the UDisks D-Bus spec <https://udisks.freedesktop.org/docs/latest/gdbus-org.freedesktop.UDisks2.Loop.html#gdbus-property-org-freedesktop-UDisks2-Loop.Autoclear> I discovered that it means:

> If TRUE, the kernel will automatically clear the loop device when the
> last closer closes the device. This typically happens when the loop
> device is unmounted. 

Perhaps it would be worth adding a slightly more human-readable version of this definition as a tooltip for the switch?
Comment 1 Kai Lüke 2017-03-25 13:40:40 UTC
Created attachment 348698 [details] [review]
Add tooltip text to Auto-clear switch

Here is a change to set "Detach loop device after unmount action" as tooltip text of the switch.