Date: Thu, 20 Dec 2001 13:38:02 +0100 From: Willem van Engen <wvengen@stack.nl> To: "Marcel Moolenaar" <marcel@xcllnt.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 15 Dec 2001 21:09:07 -0800 "Marcel Moolenaar" <marcel@xcllnt.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011220133802.57cc3e56.wvengen>