Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10996 - unmount of cdrom blocked by kdeinit in KDE3.1-rc?
Summary: unmount of cdrom blocked by kdeinit in KDE3.1-rc?
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-20 05:56 UTC by aardvark
Modified: 2003-11-19 06:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aardvark 2002-11-20 05:56:06 UTC
Symtom: 
After mounting a CD-rom (or any device) in KDE-3.1-RC2 it can not be unmounted if  "any" 
window of konqueror is open (webbrowser or filemanager.) It may be necessary to enter a 
directory on the CD (and then leaving it again) after mounting the CD to invoke the problem. 
On;y after closing every window of konq, a cdrom can be unmounted. 
 
Resolution:  
For KDE3.1-RC2 in the kdelibs ebuild change the entry  
--enable-dnotify  
to 
--disable-notify  
 
Ofcourse you will lose the (whatever) benefit of dnotify ?!? 
 
I emerged kdelibs 3.1 rc3 as well, but with --disable-dnotify in the ebuild straight away, so I 
don't know wether the problem would occur there too. I suspect though.   
I also noticed these entries in the kde3.1 final ebuild in portage and they might cause trouble 
there too... 
 
A discussion on the is here: 
http://forums.gentoo.org/viewtopic.php?p=130569#130569
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-11-23 04:11:12 UTC
We let kde use FAM anyway, and our fam comes aptched to support dnotify (in 
addition to imon). So we can disable kdelibs' direct dnotify suport (which might even 
be conflicting with fam?) - but we'd have to count on users starting the fam daemon 
(/etc/init.d/fam). 
I'll make a test build to see if that fixes this, and so on... 
Comment 2 Dan Armak (RETIRED) gentoo-dev 2002-11-23 04:53:10 UTC
Actually, kde uses FAM if the server is running, falls back to dnotify if it isn't, and falls 
back to polling if dnotify isn't supportd by the kernel (fex. on linux 2.2). 
So if you have fam running, disabling dnotify should have no effect. If you don't have 
fam running, disabling dnotify will make kde use polling - cpu-intensive, but always 
works. Do you have fam running? If not, try enabling it, I suppose. If you do, try 
disabling it (and using dnotify). I've reproduced this bug (the unmounting part) and it's 
present here _only_ when fam is used, not when dnotify is used! Wierd... 
AFAICS, using fam is only better than direct dnotify if you have IMon in your kernel. 
Can't remember if we do or not, I don't seem to... 
Comment 3 aardvark 2002-11-27 05:12:17 UTC
I can't use fam, because after a random period is will go for 100% CPU usage.  A problem that I always had as long as I use gentoo on different hardware too. Fam also locks the unmounting of CD-roms like dnotify does. Is there no way to tell those two systems (fam and dnotify) to leave the cdroms alone? It is simply not usable like this. 
Comment 4 Dan Armak (RETIRED) gentoo-dev 2002-11-29 11:21:28 UTC
With both fam and dnotify turned off, kde will fallback to polling, which is slow, 
cpu-intensive, and on network ioslaves generates extra traffic too. Not nice. 
 
Of course, in the case of linux 2.4, fam uses dnotify internally anyway (unless we 
have IMon kernel patch, which we probably don't). So this sounds like some dnotify 
i.e. kernel bug?... 
Comment 5 Dan Armak (RETIRED) gentoo-dev 2002-11-29 11:27:44 UTC
Correction: fam prefers dnotify over imon. So we get dnotify no matter what. 
Comment 6 Dan Armak (RETIRED) gentoo-dev 2003-01-31 06:43:33 UTC
Well these really are fam problems not kde ones... 
According to Azarah, the 99% cpu usage problem is due to a bg in glibc. It is fixed in the 
current glibc cvs and so glibc 2.3.2 will be ok; he's looking (?) at adding the fix to our glibc 
2.3.1. See bug #14420 for further info. 
The locking problem is possibly fam one too; can someone please check if it's still present in 
kde 3.1 final?  
Comment 7 Dan Armak (RETIRED) gentoo-dev 2003-02-22 07:35:08 UTC
This seems to be fixed in kde cvs head. Haven't checked 3.1-final yet. Anyone else? 
Comment 8 Dan Armak (RETIRED) gentoo-dev 2003-04-14 17:48:49 UTC
Fixed at least in 3.1.1a, just checked. 
Comment 9 aardvark 2003-04-16 05:43:01 UTC
Just emerged entire rc4 system incl. kde 3.1.1a and the problem persists! 
 
I have not modified the kdelibs ebuild, so dnotify an libfam support are both enabled. 
When a cd is mounted and I browse some dirs, I can not unmount it wihout closing every single 
konqueror window. 
 
	Fam is NOT used in this scenario.... 
 
I will try with fam also... 
 
 
Comment 10 aardvark 2003-04-16 05:50:17 UTC
UPDATE: 
I now enabled fam and yes it works ok then!! 
I am using gentoo 2.4.20-r2 kernel and I have imon enabled as a module 
I also made a symlink from /usr/src/linux/include/linux/imon.h  to  /usr/include/linux/imon.h to 
enable imon support for fam. (otherwise it well tell you "imon.h" is not available during configure. 
and it will not be used.) 
So this means that it still does not work properly without making some manual modifications. 
Comment 11 aardvark 2003-04-28 09:57:41 UTC
UPDATE2:

I now confirm that also without imon support for FAM as I descibed before, I am able to unmount my CD-roms when fam is enabled. SO as long as fam is enabled, (that is still a manual modification) everything seems fine. When I disable FAM it breaks again.
Comment 12 aardvark 2003-06-11 07:57:45 UTC
Well, I have 2 freshly compiled kde systems here, one with dnotify enabled and one 
with dnotify disabled for kdelibs. Only when both dnotify AND /etc/init.d/fam are 
disabled, I can unmount my cdroms whenever I want.... Otherwise they are locked. 
This is in KDE 3.1.2, but also KDE CVS.. 
 
I checked bugs.kde.org and this seems to be something that is bugging a LOT of 
people. It is not specifically gentoo related. Nevertheless, the last mandrake and 
redhat I installed did both NOT have this problem. 
 
Funny thing is that in some rare cases this problem does not occur. An old gentoo 1.2 
w kde 3.0.2, works fine with fam enabled. I'm really puzzled, not a programmer, and 
therefore not someone likely to be able to fix this myself :( 
 
Comment 13 Caleb Tennis (RETIRED) gentoo-dev 2003-06-22 12:56:26 UTC
Could you post the kde bug # here so we can track it? 
Comment 14 aardvark 2003-07-02 16:06:20 UTC
http://bugs.kde.org/show_bug.cgi?id=37780 
Comment 15 Andrew Cooks (RETIRED) gentoo-dev 2003-11-19 05:51:31 UTC
according to http://bugs.kde.org/show_bug.cgi?id=37780, it's fixed
Comment 16 Markus Nigbur (RETIRED) gentoo-dev 2003-11-19 06:16:47 UTC
fixed upstream.