[frameworks-kio] [Bug 355258] plasmashell is preventing systemd automount shares from idle unmounting

2017-05-14 Thread Joseph Yasi
https://bugs.kde.org/show_bug.cgi?id=355258

--- Comment #11 from Joseph Yasi  ---
I tracked the stat call down to KMountPoint::List::findByPath which is called
by KDiskFreeSpaceInfo again. That is being called by Device Notifier. When
systemd times out and unmounts my automounts, Device Notifier gets an event and
rescans the mounts. This triggers all of my automounts to remount when it stats
them.

KMountPoint::List:findByPath calls
QFileInfo fileinfo(path);
const QString realname = fileinfo.exists()

The fileinfo.exists() ends up calling stat on the mount point which retriggers
the mount. This causes my automounts to constantly remount after they timeout.
Is there a way to turn off the free space feature for Device Notifier?

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 355258] plasmashell is preventing systemd automount shares from idle unmounting

2017-05-14 Thread Joseph Yasi
https://bugs.kde.org/show_bug.cgi?id=355258

--- Comment #10 from Joseph Yasi  ---
I can confirm that Device Notifier is the culprit this time. I attached strace
to plasmashell and see stat("/mediastorage/mediastorage" after every auto
umount. I removed Device Notifier from the system tray, and no longer see this.
I see a read of mounts around the same time, so it looks like it's reading
through my mounts and doing a stat. This is problematic for automounts. I will
try to pin down where Device Notifier is doing this.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 355258] plasmashell is preventing systemd automount shares from idle unmounting

2017-05-14 Thread Joseph Yasi
https://bugs.kde.org/show_bug.cgi?id=355258

--- Comment #9 from Joseph Yasi  ---
This bug has reappeared for me. I had worked around it by patching
KDiskFreeSpaceInfo to not call stat on "probablySlow" mount points.

However, this has recently started happening again with that patch installed. I
don't know what is calling stat on my automounts now, but plasmashell 5.9.4 on
Ubuntu Zesty is causing my systemd automounts to remount shortly after they
timeout and autounmount:
May 14 22:07:34 fishasshole systemd[1]: Unmounting
/mediastorage/mediastorage...
-- Subject: Unit mediastorage-mediastorage.mount has begun shutting down
-- Unit mediastorage-mediastorage.mount has begun shutting down.
May 14 22:07:34 fishasshole systemd[1]: Unmounted /mediastorage/mediastorage.
-- Subject: Unit mediastorage-mediastorage.mount has finished shutting down
-- Unit mediastorage-mediastorage.mount has finished shutting down.
May 14 22:07:34 fishasshole systemd[1]: mediastorage-mediastorage.automount:
Got automount request for /mediastorage/mediastorage, triggered by 18881
(plasmashell)
May 14 22:07:34 fishasshole systemd[1]: Mounting /mediastorage/mediastorage...
-- Subject: Unit mediastorage-mediastorage.mount has begun start-up
-- Unit mediastorage-mediastorage.mount has begun starting up.
May 14 22:07:34 fishasshole systemd[1]: Mounted /mediastorage/mediastorage.
-- Subject: Unit mediastorage-mediastorage.mount has finished start-up
-- Unit mediastorage-mediastorage.mount has finished starting up.

I will try to trace why it is stating those mount points.

-- 
You are receiving this mail because:
You are watching all bug changes.