[Samba] IIS Change Notifications
agrath at gmail.com
Sun Jan 9 12:26:13 MST 2011
Sorry; exact problems to reproduce
1) Create a guest only share
1a) Make sure the windows box can access the share just using explorer
2) Start ChangeNotifyTestingConsole.exe \\path\to\share -r
2a ChangeNotifyTestingConsole will connect to the share and register for
change notifications, drop the -r if you don't want recursive)
3) Make file system changes (e.g. delete/create/modify/move/copy) on the
path you're watching (either over ssh or on the console of the server)
4) ChangeNotifyTestingConsole.exe will log any notify messages it receives;
Delete/Create logs stuff
Modify/Move/Copy isn't logging anything
I can probably upload a copy of the ubuntu 10.10 / samba 3.5.6 VM if you
need, but I expect you already have a working copy of 3.5.6
On Mon, Jan 10, 2011 at 8:22 AM, Gareth Evans <agrath at gmail.com> wrote:
> Hi There
> Good point, sorry - windows7 -> windows7 will definitely negotiate SMB2;
> and it's possible the change notifications work differently there.
> I have tested this problem using an XP and 2003 machine as the host machine
> (which would be SMB1) previously, but those weren't available last night
> when I captured the trace. I could capture a wireshark trace today using XP
> as the source if you need.
> I have put a copy of the application I used for testing up here:
> Source code is included (so you can see how it works), but also a compiled
> binary in this path:
> It's a very slightly modified copy of the FileSystemWatcher sample
> application that you can get from MSDN (I added the recursive flag)
> You'll also see the Red/Green/Blue/Test websites I'm referring to.
> These are in ChangeNotifyTesting/[red|green|blue|test]"
> If you wanted to test with those, with an IIS site pointing to the /Test
> folder, you'd then copy Red/Bin/* to Test/Bin/ (or Green, Blue)
> If you point IIS at a UNC path that isn't local, you'll have to tell
> ASP.Net to trust the path using Caspol which is in the .net framework folder
> in windows\microsoft .net\framework\v4.?????\
> Example here:
> You don't need to do this for the .net application that just listens for
> and logs change notification messages.
> To run that program, there's two arguments; a path, which shouldn't contain
> spaces and optionally -r
> e.g. "ChangeNotifyTestingConsole.exe \\smbtest\mwh-webstore\sites\ -r"
> The log files should show inotify stuff in there (just checked
> kernelnotifyon.log) - that is, the notification was registered and the
> change detected; but this never reaches the listening application (at least
> not on a copy/move/modify (edit contents) operation)
> Hopefully it's just the windows-as-source capture that isn't useful here.
> On Mon, Jan 10, 2011 at 6:37 AM, Volker Lendecke <
> Volker.Lendecke at sernet.de> wrote:
>> On Sun, Jan 09, 2011 at 11:22:09PM +1300, Gareth Evans wrote:
>> > Thanks for your quick responses so far;
>> > I've captured the following:
>> > Log & Capture from kernel notify off, 3.5.6; (hires timestamp, normal
>> > daemon, log level 10)
>> > Log & Capture from kernel notify on, 3.5.6, (hires timestamp, normal
>> > log level 10)
>> > Wireshark Capture from using windows 7 machine as fileshare (no log
>> > you can't get one from windows)
>> > All captures&logs were from IIS7 as the SMB client, but there's probably
>> > few standard windows refreshes and the like there, since I was starting
>> > stopping the samba server, I had to refresh the explorer windows a few
>> > to ensure the smbd had started before testing IIS;
>> Unfortunately the network traces only contain SMB2 traffic.
>> I can understand that against Windows as a server, but even
>> that only contains READ commands, no notify at all.
>> In the log files I indeed do not see any notification being
>> sent from the server, that's right also.
>> Maybe it's best if you sent us the small executable that
>> shows the problem. Please send exact instructions how to
>> reproduce. And, I don't have Visual Studio handily
>> available, so something executable on a standard W2k8 or
>> Win7 (or XP) would be very helpful.
>> With best regards,
>> Volker Lendecke
>> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
>> phone: +49-551-370000-0, fax: +49-551-370000-9
>> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
More information about the samba