[Samba] smbcontol smbd close-share doesn't close all open file
handles.
Tom Dickson
tdickson at inostor.com
Wed Mar 26 21:34:08 GMT 2003
I have a client connected to a share CocaCola:
smbstatus shows:
CocaCola root root 2959 tdickson (10.73.0.109) Wed Mar 26
13:16:16 2003
IPC$ root root 2959 tdickson (10.73.0.109) Wed Mar 26
13:16:09 2003
IPC$ nobody nobody 2959 tdickson (10.73.0.109) Wed Mar 26
13:16:15 2003
"lsof | grep CocaCola" shows:
smbd 2959 root 22r DIR 58,0 4096 135
/mnt/H29/CocaCola
smbd 2959 root 24r DIR 58,0 4096 135
/mnt/H29/CocaCola
after running (as root)
smbcontrol smbd close-share CocaCola
smbstatus shows:
IPC$ root root 2959 tdickson (10.73.0.109) Wed Mar 26
13:16:09 2003
(cocacola has been closed and is gone)
BUT, lsof |grep CocaCola still shows the smbd process having the directory
open:
smbd 2959 root 22r DIR 58,0 4096 135
/mnt/H29/CocaCola
smbd 2959 root 24r DIR 58,0 4096 135
/mnt/H29/CocaCola
Is there anyway to kick smbd so that it will correctly close the open files
in a certain directory? I want to unmount the snapshot, but can't do it
while there are files open. I can stop smb, and then unmount, and then
start, but that interrupts access to other shares.
(As an aside, it seems that having ACLs enabled may be part of the issue. On
another test machine, it works correctly, but that machine doesn't have
ACLs).
Any work-arounds would be appreciated.
Thank you
- Tom
More information about the samba
mailing list