https://bugzilla.redhat.com/show_bug.cgi?id=1034095
Bug ID: 1034095 Summary: Hie devicemapper mounts in Gnome Product: Fedora Version: rawhide Component: docker-io Assignee: lsm5@redhat.com Reporter: mgoldman@redhat.com QA Contact: extras-qa@fedoraproject.org CC: golang@lists.fedoraproject.org, lsm5@redhat.com, mattdm@redhat.com, mgoldman@redhat.com, vbatts@redhat.com
Description of problem:
If you use docker in a graphical environment, when you start a container - the mounted filesystem will be shown in Gnome Files explorer. I don't think there is any benefit in it - even more - there is some danger that we can unmount the filesystem by accident.
I would like to see these filesystems hidden.
I'm assigning this to docker-io component to get more opinions, later we can move it to Gnome if this will be accepted.
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
Marek Goldmann mgoldman@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Hie devicemapper mounts in |Hide devicemapper mounts in |Gnome |Gnome
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #1 from Marek Goldmann mgoldman@redhat.com --- Created attachment 828577 --> https://bugzilla.redhat.com/attachment.cgi?id=828577&action=edit Screenshot
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
Lokesh Mandvekar lsm5@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexl@redhat.com
--- Comment #2 from Lokesh Mandvekar lsm5@redhat.com --- Hi Alex, I'm guessing you'd be the goto person for this(?)
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
Andy Lutomirski luto@mit.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |luto@mit.edu
--- Comment #3 from Andy Lutomirski luto@mit.edu --- What's needed is (I think) UDISKS_IGNORE [1] [2].
[1] https://git.gnome.org/browse/gvfs/tree/monitor/udisks2/what-is-shown.txt [2] udisks.8
This may be as simple as having a standard naming convention for Docker's DM devices and adding a udev rule.
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #4 from Alexander Larsson alexl@redhat.com --- In general we don't show anything unless its in some standard locations like /media, /run/media, or $home. However there are two devices here that are still shown, as they are not mounted, so there is no mountpath that we can ignore it via.
The first is the devicemapper pool (dm-0). It has: by-id: /dev/disk/by-id/dm-name-docker-0:31-15758192-pool So maybe we can mark this via udev rules.
The second is the loopback device that is used for the devicemapper pool. I don't see how we can ignore this though: ========================================================================
Showing information for /org/freedesktop/UDisks/devices/loop0 native-path: /sys/devices/virtual/block/loop0 device: 7:0 device-file: /dev/loop0 presentation: /dev/loop0 by-id: /dev/disk/by-uuid/1cb3cade-41d1-4c3b-a0d0-246783dbfecd detected at: Thu 28 Nov 2013 14:31:36 CET system internal: 1 removable: 0 has media: 1 (detected at Thu 28 Nov 2013 14:31:36 CET) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths: mounted by uid: 0 presentation hide: 0 presentation nopolicy: 1 presentation name: presentation icon: automount hint: size: 107374182400 block size: 512 job underway: no usage: filesystem type: ext4 version: 1.0 uuid: 1cb3cade-41d1-4c3b-a0d0-246783dbfecd label: loop: filename: /dev/loop0 drive: vendor: Linux model: Loop: loop0 revision: serial: WWN: detachable: 0 can spindown: 0 rotational media: Yes, unknown rate write-cache: unknown ejectable: 0 adapter: Unknown ports: similar devices: media: compat: interface: (unknown) if speed: (unknown) ATA SMART: not available
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #5 from Alexander Larsson alexl@redhat.com --- Created attachment 830245 --> https://bugzilla.redhat.com/attachment.cgi?id=830245&action=edit udev rules to ignore docker devmapper block devices
With this rule we get rid of one of the icons. But i have no idea how to avoid showing the loop0 one.
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #6 from Alexander Larsson alexl@redhat.com --- It seems like we should be able to match on the backing file, but:
SUBSYSTEM=="block", NAME=="loop*", ATTR{loop/backing_file)=="/var/lib/docker/*", ENV{UDISKS_IGNORE}="1"
doesn't seem to work.
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #7 from Alexander Larsson alexl@redhat.com --- Created attachment 830274 --> https://bugzilla.redhat.com/attachment.cgi?id=830274&action=edit udev rules to ignore docker devmapper block devices
With this in /etc/udev/rules.d everything works for me.
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
Alexander Larsson alexl@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #830245|0 |1 is obsolete| |
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #8 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-10.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/docker-io-0.7.0-10.fc20
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #9 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-10.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/docker-io-0.7.0-10.fc19
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #10 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-10.fc20 has been pushed to the Fedora 20 testing repository.
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #11 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-12.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/docker-io-0.7.0-12.fc20
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #12 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-12.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/docker-io-0.7.0-12.fc19
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #13 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/docker-io-0.7.0-14.fc20
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #14 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/docker-io-0.7.0-14.fc19
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
--- Comment #15 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-14.el6
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |docker-io-0.7.0-14.el6 Resolution|--- |ERRATA Last Closed| |2013-12-02 20:19:45
--- Comment #16 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|docker-io-0.7.0-14.el6 |docker-io-0.7.0-14.fc19
--- Comment #17 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1034095
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|docker-io-0.7.0-14.fc19 |docker-io-0.7.0-14.fc20
--- Comment #18 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
golang@lists.fedoraproject.org