From owner-freebsd-emulation Thu Dec 20 4:38:35 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from atlantis.homeip.net (a30032.upc-a.chello.nl [62.163.30.32]) by hub.freebsd.org (Postfix) with SMTP id 342F737B416 for ; Thu, 20 Dec 2001 04:38:31 -0800 (PST) Received: (qmail 88588 invoked from network); 20 Dec 2001 12:38:29 -0000 Received: from temp.ourhome.nl (HELO jeremy.ourhome.nl) (192.168.1.20) by atlantis.ourhome.nl with SMTP; 20 Dec 2001 12:38:29 -0000 Date: Thu, 20 Dec 2001 13:38:02 +0100 From: Willem van Engen To: "Marcel Moolenaar" Cc: gallatin@cs.duke.edu, freebsd-emulation@FreeBSD.ORG Subject: Re: flexlm: works with linux_base-6, fails with linux_base-7 Message-Id: <20011220133802.57cc3e56.wvengen@stack.nl> In-Reply-To: <20011215210907.A5211@dhcp01.pn.xcllnt.net> References: <20011210115204.6ddde325.wvengen@stack.nl> <15382.5752.295875.987980@grasshopper.cs.duke.edu> <20011211184131.0425b1fd.wvengen@stack.nl> <15382.23861.710621.118157@grasshopper.cs.duke.edu> <20011212142154.2fcf4740.wvengen@stack.nl> <15383.25291.595785.323779@grasshopper.cs.duke.edu> <20011215210907.A5211@dhcp01.pn.xcllnt.net> X-Mailer: Sylpheed version 0.6.6 (GTK+ 1.2.10; i386--freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, 15 Dec 2001 21:09:07 -0800 "Marcel Moolenaar" wrote: > On Wed, Dec 12, 2001 at 08:59:39AM -0500, Andrew Gallatin wrote: > > > > Willem van Engen writes: > [snip] > > > > > > linux_base-7: > > > > bsd.l_len = bfbff15000000000, lin.l_len = bfbff15000000000 > > > > bsd.l_pid= 280cbc80, lin.l_pid = 280cbc80 > > > linux_base-6: > > > > bsd.l_len = 0, lin.l_len = 0 > > > > bsd.l_pid= 0, lin.l_pid = 0 > > > > Hopefully, Marcel will have some idea of what the "right" thing to do > > here is. > > The l_pid field can savely be set to 0 in linux_to_bsd_flock*. It's > only used for F_GETLK and hence needs to be copied in the other > direction. > > I'm wondering if the l_len field is valid. I expect a value of 0 to be > used to lock to EOF. Willem, I have to ask: is the printf you added > valid? Remote kgdb gives this: (kgdb) break 1038 Breakpoint 3 at 0xc122f919: file /usr/src/sys/modules/../../compat/linux/linux_file.c, line 1038. (kgdb) c Continuing. Breakpoint 3, linux_fcntl64 (p=0xc87239c0, args=0xc8860f80) at /usr/src/sys/modules/linux/../../compat/linux/linux_file.c:1038 1038 linux_to_bsd_flock64(&linux_flock, bsd_flock); (kgdb) print linux_flock $3 = {l_type = 1, l_whence = 1, l_start = 0, l_len = -4629716600373641216, l_pid = 671923328} - Willem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message