Bug 339295 - autofs cannot unmount NFS shares as long as a KDE session is active
Summary: autofs cannot unmount NFS shares as long as a KDE session is active
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.14.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 10:50 UTC by wuselwu
Modified: 2020-09-28 22:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wuselwu 2014-09-22 10:50:26 UTC
I'm using automount (Linux kernel based automounter) to access shares on a NFS server. Usually, automount mounts the shares only when they are accessed, and also dismounts the shares if they have not been accessed for a certain time. This does not work as soon as a KDE session is online:

Sooner or later, all shares (mounted under /net/nfsserver/share/) are automatically mounted, however, there has been no access to the driver by the user yet. Moreover, the shares are never unmounted, even if there is no user activity at all.

Unmounting the shares manually (umount /net/nfsserver/share/) works without any problem, however, the share is automounted again at once.

I cannot find out any process accessing the shares, which would explain autofs' behaviour. However, everything works as expected as long as no KDE user is logged in: Shares are not automounted, and if they where automounted by some user, they automatically unmount after this user has logged out. So there must be some KDE process accessing the shares and hindering automount from doing its job.


Reproducible: Always

Steps to Reproduce:
1. Set up NFS shares with automount (standard procedure)
2. Start a KDE user session
3. Try to get rid of the automounts

Actual Results:  
Auomounts are active all the time, unmounted automounts (by shell command) get remounted at once.

Expected Results:  
Automounts should only mount when accessed by the user and unmounted after the specified time out.
Comment 1 Christoph Feck 2014-09-22 13:41:22 UTC
> I cannot find out any process accessing the shares

How did you check? Starting a KDE session starts several processes, ranging from basic D-Bus daemon processes, gpg-agent, ssh-agent, polkit, kwrapper, up to kdeinit processes.
Comment 2 wuselwu 2014-09-22 14:11:11 UTC
lsof -- /net/nfsserver/share/
fuser -uvm /net/nfsserver/share/
Comment 3 wuselwu 2014-09-22 14:15:59 UTC
lsof | grep /net/nfsserver/share
only displays "automount"-processes owned by root.
Comment 4 Andrew Crouthamel 2018-11-12 02:58:22 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Andrew Crouthamel 2018-11-21 04:34:48 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Nate Graham 2020-09-28 22:43:36 UTC
No response; assuming it was fixed since then.