RE: SAMBA & ISAM Databases
This option checks every file access for a byte-range lock on the range
of bytes being accessed. This is typically not needed if a client
adheres to all the locking mechanisms in place. This option is set to no
by default; however, you can reset it per share as follows:
strict locking =3D yes
If this option is set to yes, mandatory locks are enforced on any file
with byte-range locks."
Extract from Chapter 8 of "Using Samba" 2nd edtion (The latest stable
distribution as of this writing is Samba 2.2.6, and this book focuses
mainly on the functionality supported in Samba 2.2.6)
Wouldn't be sufficient with locking=3Dyes and veto oplock files ?
On Wed, 2004-09-15 at 19:49, Pepe Guimar=E3es wrote:[color=blue]
> I think I managed to get a working configuration.
> I would like to have your opinions.
> I am running RH 8 with Samba 3.0.5
> 1) No samba shared mounted on Linux (this way I avoid smbfs)
> 2) Parameters in smb.conf for the share:
> -locking =3D yes
> -veto oplock files =3D *.dat/*.k*/*.hdr (in my case)
> -strict locking =3D no
> That last parameter seems to be the one that avoided writing new=20
> records to a file by the windows program while that same file was open[/color]
> by the Linux program.[/color]
And as a result, corrupting the database. At a minimum, I would expect
you to require that parameter to be on. The rest is up to the
windows/posix mappings, and how well the posix side works with the
CIFS/POSIX mapping spec. (Developed by HP I think).
Andrew Bartlett [email]firstname.lastname@example.org[/email]
Authentication Developer, Samba Team [url]http://samba.org[/url]
Student Network Administrator, Hawker College [email]email@example.com[/email]