All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Problem using mandatory locks (other apps can read/dele
@ 2002-04-17  9:53 Petr Vandrovec
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Vandrovec @ 2002-04-17  9:53 UTC (permalink / raw)
  To: E. Abbink; +Cc: linux-fsdevel

On 17 Apr 02 at 12:22, E. Abbink wrote:
> reading with a mandatory file lock set:
> 
> display       -   reads & displays image fine, seems to break lock 

Did you tried 'strace'? display probably tries to mmap() it, and
for some strange reason your kernel allows mmap on file marked for
mandatory locking. There was some discussion about disabling mmap
for them, but I have no idea what current state is, and what other
platforms do.
                                        Petr Vandrovec
                                        vandrove@vc.cvut.cz
                                                                                

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem using mandatory locks (other apps can read/dele
@ 2002-04-18 10:44 E. Abbink
  0 siblings, 0 replies; 2+ messages in thread
From: E. Abbink @ 2002-04-18 10:44 UTC (permalink / raw)
  To: Petr Vandrovec; +Cc: linux-fsdevel



> On 17 Apr 02 at 12:22, E. Abbink wrote:
> > reading with a mandatory file lock set:
> > 
> > display       -   reads & displays image fine, seems to break lock 
> 
> Did you tried 'strace'? display probably tries to mmap() it, and
> for some strange reason your kernel allows mmap on file marked for
> mandatory locking. There was some discussion about disabling mmap
> for them, but I have no idea what current state is, and what other
> platforms do.
>                                         Petr Vandrovec
>                                         vandrove@vc.cvut.cz
>                                                                      
          

strace indeed shows a mmap2 being done. 

So if mmap's arent blocked by locks, is there any other way to stop them?
 

-- 
NeoMail - Webmail that doesn't suck... as much.
http://neomail.sourceforge.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-18 10:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-17  9:53 Problem using mandatory locks (other apps can read/dele Petr Vandrovec
  -- strict thread matches above, loose matches on Subject: below --
2002-04-18 10:44 E. Abbink

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.