From owner-freebsd-questions@FreeBSD.ORG Sat May 12 10:53:25 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C85D716A402 for ; Sat, 12 May 2007 10:53:25 +0000 (UTC) (envelope-from stom@free.fr) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by mx1.freebsd.org (Postfix) with ESMTP id 8B88713C45A for ; Sat, 12 May 2007 10:53:25 +0000 (UTC) (envelope-from stom@free.fr) Received: from btn.mine.nu (tok69-1-82-67-36-224.fbx.proxad.net [82.67.36.224]) by smtp2-g19.free.fr (Postfix) with ESMTP id CF22596A78; Sat, 12 May 2007 12:53:24 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by btn.mine.nu (Postfix) with ESMTP id 82E0447CC3; Sat, 12 May 2007 11:51:12 +0200 (CEST) Received: from btn.mine.nu ([127.0.0.1]) by localhost (btn.mine.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yqlJwebwXyvP; Sat, 12 May 2007 11:51:09 +0200 (CEST) Received: from [192.168.30.10] (88-137-169-58.adslgp.cegetel.net [88.137.169.58]) by btn.mine.nu (Postfix) with ESMTP id 955F747CC0; Sat, 12 May 2007 11:51:08 +0200 (CEST) Message-ID: <46459C9E.9000500@free.fr> Date: Sat, 12 May 2007 12:53:18 +0200 From: Philippe Laquet User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Tom Judge References: <4644F7D1.2090106@free.fr> <46459523.3040801@tomjudge.com> In-Reply-To: <46459523.3040801@tomjudge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: Any FBSD Filesystem with Mandatory Locks? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2007 10:53:25 -0000 Tom Judge a écrit : > Philippe Laquet wrote: >> >> Dear All, >> >> I a trying to get HAVP (it works almost well, great software!) but I >> also need to use the streaming option and it needs a FS mounted with >> mandatory locks. I did not found any option with UFS(2) and also >> tried with ext2fs loaded but the mount_ext2fs does not support "-o >> mand" ... Any idea?... >> >> >> My config : FBSD 6-STABLE >> GENERIC Kernel >> HAVP 0.85 (tuned makefile to compile the with STREAM function) >> >> Tried with : >> mdconfig -a -t malloc -s32m >> mount_ext2fs -o mand /dev/md0 /tmp/havp (the "mand" option is not >> recognized) >> > > I don't think that FreeBSD has mandatory file locks, I believe that > all locks are advisory. I may be wrong but this is what the section > on file/descriptor locking in "The Design And Implementation of the > FreeBSD Operating System" seemed to suggest, this may have changed > since 5.2 tho. > > Tom > OK - Thanks Tom, I will take a look on it, I think that HAVP was first developped on and for GNU/Linux, that may explain the need of a Mandatory (derived from SysV?) locks... I am currently looking on the source code of HAVP and check is a FreeBSD Patch could be done. Kind Regards,