[Samba] offline folders problem with W2k SP2

Jeremy Allison jra at samba.org
Wed Feb 27 12:46:06 GMT 2002

On Mon, Feb 25, 2002 at 06:05:25PM +0100, Tommy Eriksson wrote:
> I have experianced a similar problem:
> We are running samba (2.2.3a)to serve a small number of clients (approx 20)
> about half of them are laptops. We are running Windows 2000 on our clients
> (No service packs installed). We had no problem with offline files until we
> bought a new laptop (Windows 2000 SP 2). On this new laptop we got an errro
> saying that the file couldn't be found as soon as we tried to open a offline
> file in offline mode. So we tried to downgrade the client to windows 2000,
> but we are still having the same problem. Our conclusion is that it is not
> possible to "create new offline folders" with samba 2.2.3a, regardless of
> which version of Windows 2000 we are using.
> Can someone confim this and if possible give a hint to a solution to this
> problem. The new laptop was my boss:es so I really want to solve this one
> :-)

FYI: I just fixed this in 2.2.x and HEAD CVS. If you want to look good
in front of the boss apply this patch :-).


--- smbd/nttrans.c.orig Wed Feb 27 12:34:12 2002
+++ smbd/nttrans.c      Wed Feb 27 12:34:58 2002
@@ -909,8 +909,8 @@
        if(oplock_request && EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type))
                smb_action |= EXTENDED_OPLOCK_GRANTED;

-#if 1 /* JRATEST */
-       /* W2K sends back 42 words here ! */
+#if 0
+       /* W2K sends back 42 words here ! If we do the same it breaks offline sync. Go figure... ? JRA. */

More information about the samba mailing list