Re: Fw: Linux SMBfs cache problem

From: Jesse Kuang (kjx@poboxes.com)
Date: Thu Jan 27 2000 - 02:19:34 EST


----- Original Message -----
From: Anton Ivanov <aivanov@eu.level3.net>
To: Jesse Kuang <kjx@poboxes.com>
Cc: <linux-kernel@vger.rutgers.edu>
Sent: Thursday, January 27, 2000 1:37 AM
Subject: RE: Fw: Linux SMBfs cache problem

> -----BEGIN PGP SIGNED MESSAGE-----
>
>
> On 26-Jan-2000 Jesse Kuang wrote:
> >
> > ----- Original Message -----
> > From: Jesse Kuang <kjx@poboxes.com>
> > To: <linux-kernel@vger.rutgers.edu>; <samba@samba.org>
> > Sent: Friday, January 14, 2000 4:31 PM
> > Subject: Linux SMBfs cache problem
> >
> >
> >> In the MS world, if program keep the file open(never close), the mod
> >> time/size of file never get changed whatever the program write, I've a
> >> program running on Win95/Win98/Winnt update the file(keep open/never close),
> >> the smbfs always get the cached content of file(updated several hours
> > later), I had to umount the smbfs then remount it to get updated content
> > quickly, while ncpfs has no such problem. Win95/Win98/Winnt's MS network
> > filesystem works well.
>
> If I understand you correctly you have run into SMB oplocks.
>
> See samba manual for oplocks (opportunistic locks). Unless you explicitly tell
> that a share does not have them the client shall always cache and nothing shall
> be updated until client unmounts or runs out of RAM and has to flush
> buffers.
It's SMBfs client on linux side, the file on Win95/WinNT share get cached, the oplock stands for samba Server,
what's option for smbmount to disable local cache.

Thanx
/kjx

:.˛mkabzwmb˛mbz_^nrzh&zvy杶ii



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:17 EST