[Bug 809837] New: udisks ignores UDISKS_FILESYSTEM_SHARED flag
https://bugzilla.novell.com/show_bug.cgi?id=809837 https://bugzilla.novell.com/show_bug.cgi?id=809837#c0 Summary: udisks ignores UDISKS_FILESYSTEM_SHARED flag Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: All OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Helbrass@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.10.289 Version/12.00 OpenSUSE 12.2 mounts external storages in /media/LABEL. OpenSUSE 12.3 changed this policy to mount everything in user-specific folders in /var/run/USERNAME. This change makes impossible to have user home folder on external storage, symlinked to /home. udisks2 has special udev flag to make it configurable, UDISKS_FILESYSTEM_SHARED (http://udisks.freedesktop.org/docs/latest/udisks.8.html), but it appeared in version 2.0.91 and is not supported in 2.0.0 version, included with OpenSUSE 12.3. Please update udisks2 version to current version. Reproducible: Always Steps to Reproduce: 1. add a rule line to your udev configuration: ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1", ATTR{UDISKS_FILESYSTEM_SHARED}="1", ATTRS{UDISKS_FILESYSTEM_SHARED}="1" 2. insert external storage device 3. see the mount point of device Actual Results: device is mounted in user-specific folder in /var/run Expected Results: as per documentation (and backward compatibility) device is expected to be mounted in /media folder. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c1
Andrey Borzenkov
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1"
This is enough, other assignments do not do anything. Also make sure it is the last rule (name it 99-something). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c2
--- Comment #2 from Aekold Helbrass
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c3
--- Comment #3 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c4
--- Comment #4 from Aekold Helbrass
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c5
--- Comment #5 from Andrey Borzenkov
Nope.
Did you reboot after adding rule? Alternatively "udevadm control --reload" should be enough too. This rule definitely works for me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c6
--- Comment #6 from Aekold Helbrass
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c7
--- Comment #7 from Andrey Borzenkov
Yes, it works!
Good. May I ask you to test update RPM from comment 1? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c
FeiXiang Zhang
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c8
Rainer Klier
(In reply to comment #6)
Yes, it works!
Good. May I ask you to test update RPM from comment 1?
i tried the packages from obs://build.opensuse.org/home:arvidjaar:bnc:809837/standard. an they work! without the packages from your repo it did not work! thanks! it was annoying to have lost the feature of mounting external drives in /media! this fix (incl. the required rule with the UDISKS_FILESYSTEM_SHARED switch) should go into the update-repo. i think nearly every user want's it that way. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c9
Andrey Borzenkov
i tried the packages from obs://build.opensuse.org/home:arvidjaar:bnc:809837/standard.
an they work! without the packages from your repo it did not work!
thanks!
OK, I'll submit maintenance update.
the required rule with the UDISKS_FILESYSTEM_SHARED switch) should go into the update-repo.
No. Providing better configuration possibility is one thing, changing distribution wide default policy is another. You are welcome to discuss it on factory list if you think it is required. @maintenance team: please review SR 160482. The patch is already in factory as part of udisks2 2.1.0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c10
--- Comment #10 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c11
--- Comment #11 from Rainer Klier
(In reply to comment #8)
i tried the packages from obs://build.opensuse.org/home:arvidjaar:bnc:809837/standard.
OK, I'll submit maintenance update.
thanks.
the required rule with the UDISKS_FILESYSTEM_SHARED switch) should go into the update-repo.
No. Providing better configuration possibility is one thing, changing distribution wide default policy is another. You are welcome to discuss it on
but exactly this has been done already! on 12.2 the default policy was to mount external drives in /media, and on 12.3 it is different. so, the distribution wide default policy has already been changed. this fix/change would only revert/correct this to the distribution wide default policy it was. anyway, i am happy that i am able now to correct this on my own to the old behaviour, even if it will not be default now.
factory list if you think it is required.
i will. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c12
--- Comment #12 from Andrey Borzenkov
on 12.2 the default policy was to mount external drives in /media, and on 12.3 it is different.
it depends whether udisks or udisks2 were used. On 12.2 KDE used udisks(1) and GNOME used udisks2 so KDE mounted under /media and GNOME under /run/media/<user> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c13
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c14
--- Comment #14 from Rainer Klier
(In reply to comment #11)
on 12.2 the default policy was to mount external drives in /media, and on 12.3 it is different.
it depends whether udisks or udisks2 were used. On 12.2 KDE used udisks(1) and GNOME used udisks2 so KDE mounted under /media and GNOME under /run/media/<user>
ok, thanks for explanation. understood. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c15
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c16
--- Comment #16 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c17
Greg Freemyer
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c
Greg Freemyer
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c18
Ruediger Meier
(In reply to comment #11)
on 12.2 the default policy was to mount external drives in /media, and on 12.3 it is different.
it depends whether udisks or udisks2 were used. On 12.2 KDE used udisks(1) and GNOME used udisks2 so KDE mounted under /media and GNOME under /run/media/<user>
I do not understand why the mount point depend on the used window manager at all. Now we have random mount points and non-root users can't set what they want. For me it happend that I got a media mounted in /var/run/user allthough I was working on kde3 (udisks-1). Probably because I had also some kde4 or gnome stuff running. So it's a race where it will be mounted. Introducing this random mount points was a bug which should be fixed. BTW I find it really confusing to have udisks 1 and 2 running in parallel by default. As if the automounting wouldn't be complicated enough ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809837
https://bugzilla.novell.com/show_bug.cgi?id=809837#c19
Robert Smits
participants (1)
-
bugzilla_noreply@novell.com