From: "Ara.T.Howard" Subject: Re: NFS locking question Date: Mon, 24 May 2004 11:52:29 -0600 (MDT) Sender: nfs-admin@lists.sourceforge.net Message-ID: References: Reply-To: "Ara.T.Howard" Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1BSJdF-0004RO-Eh for nfs@lists.sourceforge.net; Mon, 24 May 2004 10:53:01 -0700 Received: from fattire.ngdc.noaa.gov ([140.172.187.207]) by sc8-sf-mx2.sourceforge.net with esmtp (Exim 4.30) id 1BSJdF-00041S-4p for nfs@lists.sourceforge.net; Mon, 24 May 2004 10:53:01 -0700 To: David Dougall In-Reply-To: Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: On Mon, 24 May 2004, David Dougall wrote: > On linux clients, I have not been able to get the file to lock at all. The > fcntl returns EBADF which implies I passed a bad file descriptor, but I have > verified that it is a valid file descriptor. is the file open is a mode consistent with the lock request? eg. are you asking for an exclusive lock when the file is only open for reading? if so you'll get EBADF... you must open a file for writing if you want an exclusive lock... -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328 | URL :: http://www.ngdc.noaa.gov/stp/ | "640K ought to be enough for anybody." - Bill Gates, 1981 =============================================================================== ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs