Date: Tue, 9 Jul 2002 20:20:47 -0500 From: Glenn Johnson <glennpj@charter.net> To: FreeBSD-Stable <FreeBSD-Stable@freebsd.org> Subject: change linux_to_bsd_flock for linux_base-7.1 Message-ID: <20020710012047.GA1172@gforce.johnson.home>
next in thread | raw e-mail | index | archive | help
--Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Back in December of 2001 there was a thread on the emulation list about the Flex license manager not working with linux_base-7. The fix was to zero out the l_len and l_pid fields in linux_to_bsd_flock. I have been using this fix (patch attached) and FlexLM works fine and the applications are able to negotiate the license and run fine also. I have not experienced any problems with my other Linux applications either. I do not know if this fix does anything bad with regard to systems with linux_base-6. Since linux_base-7 is now the default linux_base, and the one everyone is supposed to use, should this fix be committed now? Thank you. -- Glenn Johnson glennpj@charter.net --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="linux_to_bsd_flock.patch" --- sys/compat/linux/linux_file.c.orig Mon Nov 5 13:08:22 2001 +++ sys/compat/linux/linux_file.c Tue Jul 9 14:54:03 2002 @@ -766,8 +766,8 @@ } bsd_flock->l_whence = linux_flock->l_whence; bsd_flock->l_start = (off_t)linux_flock->l_start; - bsd_flock->l_len = (off_t)linux_flock->l_len; - bsd_flock->l_pid = (pid_t)linux_flock->l_pid; + bsd_flock->l_len = 0; + bsd_flock->l_pid = 0; } static void @@ -818,8 +818,8 @@ } bsd_flock->l_whence = linux_flock->l_whence; bsd_flock->l_start = (off_t)linux_flock->l_start; - bsd_flock->l_len = (off_t)linux_flock->l_len; - bsd_flock->l_pid = (pid_t)linux_flock->l_pid; + bsd_flock->l_len = 0; + bsd_flock->l_pid = 0; } static void --Q68bSM7Ycu6FN28Q-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020710012047.GA1172>