Paolo Minazzi
2008-Jun-16 09:50 UTC
[Samba] Notification changes sometimes works, sometimes no
Hi. I have compiled samba 3.0.28 and 3.0.30 under both ARM and x86. I have enabled inotify into the kernel. I use kernel 2.6.20.4 for both ARM and x86. I see a strange problem about notification changes. Sometimes automatic notify works, sometimes not. Now I will show who reproduce the error I see. I have installed SAMBA on 10.0.0.61. ******* PHASE 1 ******* I open an explorer window and I insert "\\10.0.0.61". A window with USER and PASSWORD appears. I insert user and password, and my share called "RootDisk" apperars. A click on "RootDisk", and I can use my share. It works OK, and also the notification is OK. I can create files and remove then, and I have the automatic update. ******* PHASE 2 ******* Now I close my explorer window. I open a new explorer windows. I enter "\\10.0.0.61". I click on "RootDisk". Now, If I create or remove files, then notification does NOT works ! I have to press F5 key. ******* PHASE 3 ******* Now I close the explorer window. I open a new explorer window. I enter "\\10.0.0.61\RootDisk". Now I create and remove files, and the notification works OK. ------------------------------------------------------------------ I underline that I exec PHASE1, then PHASE2, then PHASE3 in this order. PHASE1 and PHASE3 works OK, PHASE2 does not work OK. I have tried to insert some debug messages in source/smbd/notify_inotify.c but I have not understood the difference when notification works OK and when there is the notification problem. Inotify support is OK (I have added debug messages and I see them). I think there is something strange in the communication client-server. I think my smbd.conf is very simple. I have tried to add some config option -> socket options = TCP_NODELAY but this does not solve my problem. Is this a known error ? or do I make some error ? or is my config incomplete ? Thanks in advance Paolo Minazzi
Volker Lendecke
2008-Jun-16 10:01 UTC
[Samba] Notification changes sometimes works, sometimes no
On Mon, Jun 16, 2008 at 11:44:12AM +0200, Paolo Minazzi wrote:> Hi. > I have compiled samba 3.0.28 and 3.0.30 under both ARM and x86. > I have enabled inotify into the kernel. > I use kernel 2.6.20.4 for both ARM and x86. > I see a strange problem about notification changes. Sometimes > automatic notify works, > sometimes not. > > Now I will show who reproduce the error I see. > I have installed SAMBA on 10.0.0.61. > > ******* > PHASE 1 > ******* > I open an explorer window and I insert "\\10.0.0.61". > A window with USER and PASSWORD appears. > I insert user and password, and my share called "RootDisk" apperars. > A click on "RootDisk", and I can use my share. It works OK, and also the > notification is OK. I can create files and remove then, and I have the > automatic update. > > ******* > PHASE 2 > ******* > Now I close my explorer window. > I open a new explorer windows. > I enter "\\10.0.0.61". > I click on "RootDisk". > Now, If I create or remove files, then notification does NOT works ! > I have to press F5 key.Please file a bug at https://bugzilla.samba.org and upload your smb.conf and a debug level 10 log of smbd. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20080616/afc0d5db/attachment.bin