Date: Sun, 2 Oct 2005 16:40:34 +0100 From: Joao Barros <joao.barros@gmail.com> To: freebsd-hackers@freebsd.org Subject: Importing bio aka RAID Management Framework from OpenBSD Message-ID: <70e8236f0510020840s41fb5a93o20209f64409fd426@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, I proposed to import bio aka RAID Management Framework from OpenBSD. I have studied how bio is implemented in OpenBSD and here is a quick resume of the 3 components that make bio: - bio - ioctl tunnel pseudo-device /dev/bio.c biovar.h The bio driver provides userland applications ioctl access to devices otherwise not found as /dev nodes. The /dev/bio device node operates = by delegating ioctl(2) calls to a requested device driver. Only drivers which have registered with the bio device can be accessed via this int= er- face. - ciss, amr - supported device drivers - bioctl - RAID management interface RAID device drivers which support management functionality can register their services with the bio(4) driver. bioctl then can be used to mai= n- tain RAID volumes. After analysing the structure of /src my initial idea was: new /src/sys/contrib/dev/bio/bio.c biovar.h new /src/sys/modules/bio/makefile new /src/contrib/bio/bioctl.c edit amr and ciss to register themselves on bio 1st: are these the correct places to be putting this files? 2nd: the drivers need to register to bio, this one being a kernel module. If bio is not compiled in that can represent a problem. Ideas? References: Theo De Raadt initial presentation of bio: http://marc.theaimsgroup.com/?l=3Dopenbsd-misc&m=3D112630095818062 bio manpage: http://www.openbsd.org/cgi-bin/man.cgi?query=3Dbio&sektion=3D4= &arch=3Di386&apropos=3D0&manpath=3DOpenBSD+Current bioctl manpage: http://www.openbsd.org/cgi-bin/man.cgi?query=3Dbioctl&sektion=3D8&arch=3Di3= 86&apropos=3D0&manpath=3DOpenBSD+Current -- Joao Barros
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70e8236f0510020840s41fb5a93o20209f64409fd426>