From: "E. Abbink" Subject: Re: Problem using mandatory locks (other apps can read/dele Date: Thu, 18 Apr 2002 12:44:00 +0200 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <200204181044.MAA01049@fikkie.vesc.nl> Reply-To: esger@bumblebeast.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: linux-fsdevel@vger.kernel.org Return-path: To: "Petr Vandrovec" List-Id: linux-fsdevel.vger.kernel.org > 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