Force client to refresh display? (i.e. notify about changed directory contents)

Jeremy Allison jra at samba.org
Fri Feb 10 16:57:43 GMT 2006


On Fri, Feb 10, 2006 at 01:26:03PM +0200, ext-flemming.johansen at nokia.com wrote:
> I am writing a VFS plugin for Samba-3.0.21b to do some proprietary magic when users copy files onto a Samba server. The problem I face, is that this "magic" (sorry, company policies prevent me from being more specific than that) may cause some files to disappear and new files to appear. And the end users do not appreciate having to press F5 between file operations.

FYI: This is fine (proprietary VFS) if used within the company, but must be
released as GPL if you redistribute this functionality outside the company.

> So this is my question: Is there some way a VFS plugin can signal the (Windows XP) client that the contents of a directory have changed? 

If the client has a change notify request pending on that directory you can respond to
it and the client will then refresh the directory listing.

Jeremy


More information about the samba-technical mailing list