Linux emulation enhancement to emulate device nodes and some SCSI stuff

Doug Ambrisko ambrisko at ambrisko.com
Wed May 3 14:27:39 UTC 2006


Alexander Leidinger writes:
| 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".

Good catch.  The error is that I pasted in a 2nd bogus
	translate_fd_major_minor(td, args->fd, &buf);
I fixed that.

Thanks for looking at it.  I'll check on my make universe and check it
in if that worked okay.

Doug A.


More information about the freebsd-emulation mailing list