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
many: add x-gvfs-hide option to mount units #10104
Conversation
- x-gvfs-hide mount option should be used to hide block devices in Gnome gvfs. This is documented in https://gitlab.gnome.org/GNOME/gvfs/blob/master/monitor/udisks2/what-is-shown.txt - gvfs-udisks2-volume-monitor uses a lot of CPU when there are a lot of mount loopback devices unless the loopback devices are hidden from udisks2 with x-gvfs-hide or udev rule containing ENV{UDISKS_IGNORE}="1"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good
I wonder if the name x-gvfs-hide
needs to become x-gvfs.hide
at some point, as that's the standard for custom options. But this is not an impact on this PR, +1.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for this!
This looks great, thanks for this! We would love to merge but it appears that the CLA is not signed, would you mind signing it please? The details are here: https://ubuntu.com/legal/contributors - thanks a lot! |
Hi @mvo5 , I already signed it. Did you find it somewhere? I didn't know what to put in the "Canonical Product manager or contact" field so I put "snapd" there. |
hi @lhotari the CLA check sometimes takes a few hours to synchronize everywhere, but it looks good now. I renamed your PR title to match our CI checks now so that the rest of our test suite runs. Thanks for the contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mvo5 I think w can land it, the failures are unrelated. Also, added 2.49 milestone if we do .3. |
Hi, has this been released? I am on
I see this:
I would expect the |
Hm on my opensuse box:
So there is something fishy going on. The option is not listed in mounts, but is listed in the mount unit. I've collected the output with LIBMOUNT_DEBUG=all:
Looks like libmount has stripped some options, so it eiether has opinions on what the proper format is, or there's a bug in libmount. I understand that this option is needed for gvfs, please verify the behavior on Ubuntu and file a bug in LP. for the appropriate component. |
Nothing extra but the behavior seems to be the same in case of snapfuse as well
|
Seems to be related to the user option storage in utab. See util-linux/util-linux#1583 |
@bboozzoo Yes, this is a libmount bug. It keeps only one X/x-* option. It's already fixed by commit http://github.com/util-linux/util-linux/commit/d85f45d5ddb020b9858356b4c2c91d962ac7e6d7. This bugfix will be in v2.38. |
@karelzak thank you for confirming and fixing it! |
Thanks for the update @karelzak |
Use x-gvfs-hide mount option to hide squashfs loopback devices in Gnome gvfs
x-gvfs-hide mount option should be used to hide block devices in
Gnome gvfs. This is documented in
https://gitlab.gnome.org/GNOME/gvfs/blob/master/monitor/udisks2/what-is-shown.txt
gvfs-udisks2-volume-monitor uses a lot of CPU when there are a lot of
mount loopback devices unless the loopback devices are hidden from udisks2
with x-gvfs-hide or udev rule containing ENV{UDISKS_IGNORE}="1"