Bug 219929 - kde menu -> system seems to stat mount points
Summary: kde menu -> system seems to stat mount points
Status: RESOLVED UPSTREAM
: 271307 (view as bug list)
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: KDE3 (show other bugs)
Version: Alpha 2
Hardware: PowerPC Linux
: P3 - Medium : Enhancement (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-10 16:37 UTC by Olaf Hering
Modified: 2009-05-14 11:56 UTC (History)
2 users (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
sles10-kde-menu-system-tries-to-access-mount-points.png (149.14 KB, image/png)
2006-11-10 16:38 UTC, Olaf Hering
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olaf Hering 2006-11-10 16:37:48 UTC
selecting 'System' from the KDE menu seems to trigger a stat on all mount points.
It did have for a few seconds until it displayed the actual contents of the 'System' submenu.

Now imagine if any of the mount points were a hanging NFS mount point...
Luckily there was only a scsi drive in stand by mode.
Comment 1 Olaf Hering 2006-11-10 16:38:12 UTC
Created attachment 104708 [details]
sles10-kde-menu-system-tries-to-access-mount-points.png
Comment 2 Dirk Mueller 2006-11-10 20:08:57 UTC
that would be strange, and I could only think that it searches for icons or desktop files there. what are your  mountpoints? can you reproduce it, what is it stat'ing for?

Comment 3 Olaf Hering 2006-11-10 20:22:52 UTC
how do I know? what process do I have to strace?

olaf@nectarine:~> cat /proc/mounts 
rootfs / rootfs rw 0 0
udev /dev tmpfs rw 0 0
/dev/hda11 / ext2 rw,nogrpid 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
debugfs /sys/kernel/debug debugfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda7 /abuild ext2 rw,nogrpid 0 0
/dev/hdb11 /install/hdb reiserfs ro 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
automount(pid3263) /mounts autofs rw 0 0
automount(pid3265) /suse autofs rw 0 0
automount(pid3267) /secret autofs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
wotan:/real-home/olh /suse/olh nfs rw,nosuid,v3,rsize=8192,wsize=8192,hard,intr,nolock,proto=tcp,addr=wotan 0 0
Comment 4 Dirk Mueller 2006-11-13 23:07:06 UTC
it should be either kicker (unlikely) or kded (likely). those are unique apps, so try strace -p $(pidof kicker) / strace -p $(pidof kded). 

from the mountpoints I see nothing wrong. my current guess is that it is the hal backend of the media manager that is causing the stat of the mountpoint. 

Comment 5 Olaf Hering 2006-11-16 11:28:54 UTC
I tried this, kicker, kded or the both hald processes did not do the stat.
Comment 6 Dirk Mueller 2006-11-16 12:07:44 UTC
can you trigger it by running "dcop kded mediamanager fullList" ?

Comment 7 Stephan Kulow 2006-11-16 12:50:56 UTC
kicker does for sure. It does a statfs to display the size and amount of free space on the media. And I see no way to not do that on power saved media ;(

Greg, do you see one?
Comment 8 Dirk Mueller 2006-11-16 13:03:07 UTC
either the kernel should provide a way to say "only do statfs if you it is expected to return fast" or the kernel should cache the root inode, superblock and whatever else it needs for statfs to succeed before powering down a device.

Comment 9 Dirk Mueller 2006-11-16 13:04:10 UTC
or perhaps hald can supply an event that we can abuse for "this device is going to power down soon, run statfs if you want to cache it". 
Comment 10 Greg Kroah-Hartman 2006-11-16 16:50:00 UTC
No, I don't see a way to not do that on media that is plugged in, unless you want to look at the property in HAL that shows it is a removable device.
Comment 11 Stephan Kulow 2006-11-16 17:10:48 UTC
Which won't help as builtin disks can powerdown too. But we can at least make the menu not stall when this happens, but not for 10.2
Comment 12 Dirk Mueller 2006-11-23 14:55:18 UTC
just wondering.. this is the same like with running "df" and a powered-down drive, correct?

I would consider this to be a generic kernel bug and don't think it is worth adding a workaround for it to the kickoff menu. 
Comment 13 Olaf Hering 2006-11-23 15:08:36 UTC
one could argue that it is fixed in 10.2 because the kde menu looks now different.
Comment 14 Dirk Mueller 2006-11-23 20:50:26 UTC
huh? it should still have a list of partitions together with its size, nothing should have changed. 

anyway, does df also wake up your drive?
Comment 15 Olaf Hering 2006-11-23 21:16:09 UTC
no, df does not do that. at least it never caused any IO errors as shown in the screen shot.
Comment 16 Olaf Hering 2006-12-07 11:58:14 UTC
I see it in 10.2 when clicking on the kde menu.
Comment 17 Dirk Mueller 2007-01-18 15:52:45 UTC
does stat <mountpoint> trigger them? it really does nothing more than a stat and a statfs() call.. 
Comment 18 Lubos Lunak 2008-07-30 13:38:53 UTC
*** Bug 271307 has been marked as a duplicate of this bug. ***
Comment 19 Lubos Lunak 2009-05-14 11:56:43 UTC
https://bugs.kde.org/show_bug.cgi?id=184062