From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Joseph D. Wagner" Subject: Does mandatory locking need to be set when the file is locked? Date: Mon, 15 Dec 2003 07:57:57 +0600 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <200312150757.57021.theman@josephdwagner.info> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from ssa8.serverconfig.com ([209.51.129.179]:57988 "EHLO ssa8.serverconfig.com") by vger.kernel.org with ESMTP id S263609AbTLON6B (ORCPT ); Mon, 15 Dec 2003 08:58:01 -0500 Received: from 24-196-33-250.shb.wi.charter.com ([24.196.33.250] helo=192.168.1.2) by ssa8.serverconfig.com with asmtp (Exim 4.24) id 1AVtEW-00026U-KP for linux-fsdevel@vger.kernel.org; Mon, 15 Dec 2003 08:57:38 -0500 To: linux-fsdevel@vger.kernel.org Content-Disposition: inline List-Id: linux-fsdevel.vger.kernel.org I'm writing a program that changes the permissions on a file to enable mandatory locking, does its thing to the file, and then resets the permissions. Do do the mandatory locking permissions have to be set before the lock is set? Or will the kernel dynamically recognize the change on the fly so that an active lock becomes mandatory? TIA. Joseph D. Wagner