Bug in samba 2.2 + kernel 2.4?

Jon Monroe jmonroe at imagebuilder.com
Thu Oct 17 21:45:01 GMT 2002


Hello,

I'm seeing tons of leftover directory handles for any directories visited 
on a samba share (via a win2k/win9x workstation). For every directory 
access inside a samba share, 3 handles are initially opened -- 2 read 
handles, and a single CWD handle. The CWD handle goes away, but the read 
handles sit around forever, or until you kill the smbd process that opened 
them. These add up pretty quick.

What's really weird is I only see this on kernel 2.4 (2.4.18). If I go back 
to my old kernel 2.2 box, the problem doesn't seem to exist.

I'm using a RH 7.0 box for the kernel 2.2 test, and a RH 8.0 box for the 
kernel 2.4 test. I've tried this on samba 2.2.5, 2.2.6rc4, and the latest 
3.0 alpha.

Is this supposed to happen? The problem from this (aside from the obvious) 
is that the loop device can't be released when you unmount an ISO image 
file as a share. I can do a lazy unmount which does release the mount. But, 
the loop device stays in use until the smbd process is killed.

Thanks for any help! :))

Jon




More information about the samba-technical mailing list