Re: Help on posix file lock semantics

2001-08-22 Thread Gunnar Andre Dalsnes
At 22.08.01 02:19 , you wrote: >On Wed, Aug 22, 2001 at 01:31:39AM +0200, Gunnar Andre Dalsnes wrote: > > At 22.08.01 00:37 , you wrote: > > > > > >Those 2 regions follow each other. I think you're not supposed > > >to merge those regions even if you could. > > > > > >If you don't merge regions i

Re: Help on posix file lock semantics

2001-08-21 Thread Kurt Roeckx
On Wed, Aug 22, 2001 at 01:31:39AM +0200, Gunnar Andre Dalsnes wrote: > At 22.08.01 00:37 , you wrote: > > > >Those 2 regions follow each other. I think you're not supposed > >to merge those regions even if you could. > > > >If you don't merge regions in any other case, why would you > >suddenly

Re: Help on posix file lock semantics

2001-08-21 Thread Gunnar Andre Dalsnes
At 22.08.01 00:37 , you wrote: >On Wed, Aug 22, 2001 at 12:11:02AM +0200, Gunnar Andre Dalsnes wrote: > > At 21.08.01 12:11 , you wrote: > > >On Mon, Aug 20, 2001 at 10:55:54PM +0200, Gunnar Andre Dalsnes wrote: > > > > At 20.08.01 13:18 , you wrote: > > > > >On Sun, Aug 19, 2001 at 11:06:13PM +02

Re: Help on posix file lock semantics

2001-08-21 Thread Kurt Roeckx
On Wed, Aug 22, 2001 at 12:11:02AM +0200, Gunnar Andre Dalsnes wrote: > At 21.08.01 12:11 , you wrote: > >On Mon, Aug 20, 2001 at 10:55:54PM +0200, Gunnar Andre Dalsnes wrote: > > > At 20.08.01 13:18 , you wrote: > > > >On Sun, Aug 19, 2001 at 11:06:13PM +0200, Gunnar Andre Dalsnes wrote: > > > >

Re: Help on posix file lock semantics

2001-08-21 Thread Gunnar Andre Dalsnes
At 21.08.01 12:11 , you wrote: >On Mon, Aug 20, 2001 at 10:55:54PM +0200, Gunnar Andre Dalsnes wrote: > > At 20.08.01 13:18 , you wrote: > > >On Sun, Aug 19, 2001 at 11:06:13PM +0200, Gunnar Andre Dalsnes wrote: > > > > And locks outside of upgraded regions are resized to fit and kept as standalo

Re: Help on posix file lock semantics

2001-08-21 Thread Jerry Heyman
I'm joining this late, and may be misunderstanding something, but... On 20 August 2001 at 23:25, Kurt Roeckx <[EMAIL PROTECTED]> wrote: > On Mon, Aug 20, 2001 at 10:55:54PM +0200, Gunnar Andre Dalsnes wrote: > > >On Sun, Aug 19, 2001 at 11:06:13PM +0200, Gunnar Andre Dalsnes wrote: >> Example:

Re: Help on posix file lock semantics

2001-08-21 Thread Kurt Roeckx
On Mon, Aug 20, 2001 at 10:55:54PM +0200, Gunnar Andre Dalsnes wrote: > At 20.08.01 13:18 , you wrote: > >On Sun, Aug 19, 2001 at 11:06:13PM +0200, Gunnar Andre Dalsnes wrote: > > And locks outside of upgraded regions are resized to fit and kept as standalone >locks? > > Example: > A file has w

Re: Help on posix file lock semantics

2001-08-20 Thread Gunnar Andre Dalsnes
At 20.08.01 23:25 , you wrote: >On Mon, Aug 20, 2001 at 10:55:54PM +0200, Gunnar Andre Dalsnes wrote: > > At 20.08.01 13:18 , you wrote: > > >On Sun, Aug 19, 2001 at 11:06:13PM +0200, Gunnar Andre Dalsnes wrote: > > > > > > There will be at most one type of lock set for each byte in the > > >

Re: Help on posix file lock semantics

2001-08-20 Thread Kurt Roeckx
On Mon, Aug 20, 2001 at 10:55:54PM +0200, Gunnar Andre Dalsnes wrote: > At 20.08.01 13:18 , you wrote: > >On Sun, Aug 19, 2001 at 11:06:13PM +0200, Gunnar Andre Dalsnes wrote: > > > > There will be at most one type of lock set for each byte in the > > file. Before a successful return fro

Re: Help on posix file lock semantics

2001-08-20 Thread Gunnar Andre Dalsnes
At 20.08.01 13:18 , you wrote: >On Sun, Aug 19, 2001 at 11:06:13PM +0200, Gunnar Andre Dalsnes wrote: > > Issue 2: > > Affects: Uniprocess, fcntl->F_SETLK->F_RDLCK/F_WRLCK/F_UNLCK > > > > Both win32 and posix allow only one type of lock per byte of a file. > > > > Win32 fails if any region overl

Re: Help on posix file lock semantics

2001-08-20 Thread Kurt Roeckx
On Sun, Aug 19, 2001 at 11:06:13PM +0200, Gunnar Andre Dalsnes wrote: > > Issue 1: > Affects: Uniprocess, CloseHandle (file) > > Both win32 and posix discharges locks made by process when ends. > > Win32 associate locks with handles. > If one of many handles for a file close, only locks made b