[Samba] Using SMB_VFS_IS_OFFLINE for directories.

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Jul 22 05:43:36 MDT 2014


On Mon, Jul 21, 2014 at 09:55:06AM -0500, Dean Roehrich wrote:
> On 07/20/2014 07:44 AM, Volker Lendecke wrote:
> >On Fri, Jul 18, 2014 at 03:53:37PM -0500, Dean Roehrich wrote:
> >>I've attached the patch.
> >>
> >>Right now the only testing I've done is to have a plugin that always
> >>returns 'true' to the SMB_VFS_IS_OFFLINE() op and then on the
> >>windows box I manually navigate through the folder hierarchy.
> >
> >One question: What is your reason behind doing it? Does it
> >change Windows behaviour, i.e. does Windows traverse those
> >directories less for example?
> 
> We have a case where the linux node may not be able to immediately
> provide the contents of the folder.  We'd like to have the windows
> client wait on its original request for the duration of the delay,
> rather than making new requests.  In our case, the delay is always
> less than OffLineFileTimeoutIntervalInSeconds, but still long enough
> that we need to tell windows that the file/folder is offline.

Ok, sounds great. I'm surprised that the offline bit on
directories makes a difference to Windows!

Volker

-- 
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
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba mailing list