Linux emulation enhancement to emulate device nodes and some SCSI stuff

Alexander Leidinger Alexander at Leidinger.net
Wed May 3 08:55:10 UTC 2006


Quoting Doug Ambrisko <ambrisko at ambrisko.com> (from Thu, 27 Apr 2006  
14:48:28 -0700 (PDT)):

> To get the LSI RAID SAS to work under Linux emulation we need to emulate
> more of Linux type stuff.  I've put patches up at:
> 	http://www.ambrisko.com/doug/linux.patches

In case you didn't got any responses: go ahead, we don't have an  
active linuoxlator guru ATM.

Some generic comments (only a *quick* C-level review, not a  
design/concept-level review):
---snip--
@@ -470,7 +522,9 @@ linux_fstat64(struct thread *td, struct
  #endif

  	error = kern_fstat(td, args->fd, &buf);
+	translate_fd_major_minor(td, args->fd, &buf);
  	if (!error)
+		translate_fd_major_minor(td, args->fd, &buf);
  		error = stat64_copyout(&buf, args->statbuf);
---snip---

Bug, missing {} for the "if".

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
There are two kinds of pedestrians... the quick and the dead.
		-- Lord Thomas Rober Dewar




More information about the freebsd-emulation mailing list