Date: Sat, 12 Jan 2002 18:02:31 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: John Baldwin <jhb@FreeBSD.org> Cc: smp@freebsd.org, dillon@freebsd.org, tanimura@freebsd.org, Alfred Perlstein <bright@mu.org> Subject: Re: fd locking. Message-ID: <XFMail.020112180231.jhb@FreeBSD.org> In-Reply-To: <XFMail.020112174456.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 13-Jan-02 John Baldwin wrote: > > On 13-Jan-02 Alfred Perlstein wrote: >> * Alfred Perlstein <bright@mu.org> [020112 03:11] wrote: >>> I've got world building with these patches. >>> >>> http://people.freebsd.org/~alfred/fd.diff >>> >>> or >>> >>> http://people.freebsd.org/~alfred/fd.diff.gz >> >> I've been asked for an archetectural overview. One bug: --- compat/svr4/svr4_fcntl.c 2001/09/12 08:36:58 +++ compat/svr4/svr4_fcntl.c 2002/01/08 08:39:08 @@ -341,7 +349,10 @@ SCARG(&ft, fd) = fd; SCARG(&ft, length) = start; - return ftruncate(td, &ft); + error = ftruncate(p, &ft); + + fdrop(fp, td); + return (error); } int ftruncate() takes a thread, not a proc. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.020112180231.jhb>