tdb corruption with "use mmap=false"

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Fri Sep 7 13:05:01 GMT 2001


Hi Jeremy,
You're right (again) ;->
Thanks,
Don

-----Original Message-----
From: Jeremy Allison [mailto:jeremy at valinux.com]
Sent: Friday, September 07, 2001 3:55 PM
To: MCCALL,DON (HP-USA,ex1)
Cc: 'jra at samba.org'; 'samba-technical at lists.samba.org';
'reinout at mktaal.nl'
Subject: Re: tdb corruption with "use mmap=false"


"MCCALL,DON (HP-USA,ex1)" wrote:
> 
> Hi Jeremy,
> Thanks for the clarification.
> I guess what I'm concerned about is Lotus Notes, or other programs that
are
> 'cheating' if you will, and trying to use a byte range lock beyond the end
> of file at a specific position to 'communicate' something to other
instances
> of the program.  If this is the case, then the 1st instance will think it
> has 'communicated', but when another instance does the same thing, and
> doesn't fail, will think it is able to do something to the file that it
> shouldn't be allowed to.

But if it's a Windows client to Windows client communication
then it'll work perfectly, as the brlock database (which is
not seen by the underlying OS and is internal to Samba) will take care of
it.

Remember, the POSIX lock layer is only used to communicate
between Windows clients and UNIX clients. So if it's this
latter case, then there's no way the UNIX client can even
see locks < 2^^31-1 so the application would be broken already.

Jeremy.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------




More information about the samba-technical mailing list