[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [plasmashell] [Bug 355258] plasmashell is preventing systemd automount shares from idle unmounting
From:       Maciej Stanczew <bugzilla_noreply () kde ! org>
Date:       2018-07-31 21:23:12
Message-ID: bug-355258-17878-nICzI42uqQ () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=355258

Maciej Stanczew <maciej.stanczew+b@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maciej.stanczew+b@gmail.com

--- Comment #22 from Maciej Stanczew <maciej.stanczew+b@gmail.com> ---
I experience a similar issue. I have three NFS mounts in fstab, with option
"x-systemd.automount" set (so they should only be mounted when something tries
accessing corresponding directories). After system boot none of the three
shares is mounted, but then when one is mounted on demand, plasmashell triggers
the mount of other two shares:

Jul 31 22:41:05 hostname systemd[1]: n-media.automount: Got automount request
for /n/media, triggered by 669 (mpd)
Jul 31 22:41:05 hostname systemd[1]: Mounting /n/media...
Jul 31 22:41:05 hostname systemd[1]: Mounted /n/media.
Jul 31 22:41:05 hostname systemd[1]: n-pacman.automount: Got automount request
for /n/pacman, triggered by 518 (plasmashell)
Jul 31 22:41:05 hostname systemd[1]: Mounting /n/pacman...
Jul 31 22:41:05 hostname systemd[1]: Mounted /n/pacman.
Jul 31 22:41:05 hostname systemd[1]: n-backup.automount: Got automount request
for /n/backup, triggered by 518 (plasmashell)
Jul 31 22:41:05 hostname systemd[1]: Mounting /n/backup...
Jul 31 22:41:05 hostname systemd[1]: Mounted /n/backup.

As in original description, it's not possible to unmount any of the shares:

Jul 31 22:44:14 hostname systemd[1]: Unmounting /n/backup...
Jul 31 22:44:14 hostname systemd[1]: n-backup.automount: Got automount request
for /n/backup, triggered by 518 (plasmashell)
Jul 31 22:44:14 hostname systemd[1]: Mounting /n/backup...
Jul 31 22:44:15 hostname systemd[1]: Mounted /n/backup.

This only happens with Device Notifier applet active -- without it, everything
works correctly.

The patch from comment #15 fixes both of above issues -- plasmashell no longer
triggers any unwanted mounts in those scenarios.

Regarding simultaneous unmount (as described in comment #16): manually running
umount with multiple targets always works (all shares are properly unmounted).
It's only when doing this from systemd that sometimes shares are remounted by
plasmashell:

# systemctl stop n-backup.mount n-media.mount n-pacman.mount
Job for n-media.mount canceled.

Jul 31 23:02:53 hostname systemd[1]: Unmounting /n/backup...
Jul 31 23:02:53 hostname systemd[1]: Unmounting /n/media...
Jul 31 23:02:53 hostname systemd[1]: Unmounting /n/pacman...
Jul 31 23:02:53 hostname systemd[1]: n-media.automount: Got automount request
for /n/media, triggered by 508 (plasmashell)
Jul 31 23:02:53 hostname systemd[1]: Unmounted /n/backup.
Jul 31 23:02:53 hostname systemd[1]: Mounting /n/media...
Jul 31 23:02:53 hostname systemd[1]: Unmounted /n/pacman.
Jul 31 23:02:53 hostname systemd[1]: Mounted /n/media.

Still, could the patch from comment #15 be merged regardless of this remaining
issue? In my case the patch only improves the behavior, as it eliminates almost
all of unwanted mounts (leaving only a specific corner-case that is
simultaneous unmounting).

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic