Date: Tue, 16 Jan 2001 22:51:06 +0000 From: Paul Richards <paul@freebsd-services.co.uk> To: Josef Karthauser <joe@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/compat/linux linux_stats.c Message-ID: <3A64D05A.ABFD3322@freebsd-services.co.uk> References: <200101142333.f0ENXqB09391@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Josef Karthauser wrote: > > joe 2001/01/14 15:33:51 PST > > Modified files: > sys/compat/linux linux_stats.c > Log: > Instead of hard coding the major numbers for IDE and SCSI disks > look in the device's cdevsw for the D_DISK flag. Ahh, I didn't commit this because it's not just IDE and SCSI disks that have D_DISK set. CDROM's also have it set, as do md and vn devices and I wasn't sure that they should be remapped in the same way as IDE and SCSI disks, particularly the mapping of the major number to 0, which I wasn't even sure was right for SCSI disks. I think what is needed is a more generic solution, such as a table that maps FreeBSD devices to Linux devices as appropriate. Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A64D05A.ABFD3322>