Summary: | Hide devicemapper mounts in Gnome | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Marek Goldmann <mgoldman> | ||||||||
Component: | docker-io | Assignee: | Lokesh Mandvekar <lsm5> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | rawhide | CC: | alexl, golang-updates, jkeck, lsm5, luto, mattdm, mgoldman, vbatts | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | docker-io-0.7.0-14.fc20 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2013-12-03 01:19:45 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Attachments: |
|
Description
Marek Goldmann
2013-11-25 09:15:50 UTC
Created attachment 828577 [details]
Screenshot
Hi Alex, I'm guessing you'd be the goto person for this(?) 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. 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 Created attachment 830245 [details]
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.
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. Created attachment 830274 [details]
udev rules to ignore docker devmapper block devices
With this in /etc/udev/rules.d everything works for me.
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 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 docker-io-0.7.0-10.fc20 has been pushed to the Fedora 20 testing repository. 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 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 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 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 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 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. 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. 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. |