vfs_stat called but ignored when client has dir open

Jeremy Allison jra at samba.org
Thu Apr 26 10:22:19 MDT 2012

On Thu, Apr 26, 2012 at 09:19:27AM -0700, Andrew Klaassen wrote:
> --- On Mon, 4/23/12, Jeremy Allison <jra at samba.org> wrote:
> > Ah ok. Now I recall (thanks for reminding me :-). We do it
> > that was as it's the way Windows does it. We're caching
> > the mtime (write time) inside the share mode entry.
> > 
> > Look at the get_file_infos() call inside locking/locking.c,
> > and the cached time data on the 'struct share_mode_lock'.
> > 
> > You'll need to modify that if you want to affect mtime
> > on an open file.
> I've implemented a per-share config parameter that allows this behaviour to be overridden.  Would there be any interest in it?

Sure, I'd be interested in seeing the patch. If you needed
it that's a sign that others might too.



More information about the samba-technical mailing list