tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

DM device-mapper driver status



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

In this year Summer of Code I'm working on NetBSD support for LVM. With help of my
mentor (@blymn) I have selected these tasks to do:

1) rewrite ioctl interface to proplib

2) get lvm2tools and libdevmapper working in NetBSD.

Before GSOC I have written NetBSD version of device-mapper driver. This driver is used to create virtual block devices (Logical volumes). This driver use old ioctl interface. Last working version is tagged in my monotone repository* with this tag NetBSD dm 0.1.

During community bonding period I worked on libdevmapper and lvm2tools. I have rewritten some parts of lvm2tools and libdevmapper to properly work without procfs and usage of raw devices. Last working version of lvm2tools were tagged in my repo as NetBSD LVM2.2.02.28.

I tried to upgrade LVM2tools to newer version (current version is 2.02.36) but I found that best option is write all necessary parts on my in database version and later port
them to current LVM2tools.

Now I'm working on new proplib interface for dm-kernel driver and libdevmapper. Work is
done in

  org.netbsd.haad.dm.dmlkm-proplib
  org.netbsd.haad.dm.libdm-proplib

Proplib version of libdevmapper uses 3 new NetBSD specific files:

 include/netbsd/netbsd_dm.h
 lib/ioctl/libdm-nbsd-iface.c
 lib/ioctl/libdm_netbsd.c

lib/ioctl files create proplib dictionary from libdevmapper
dm_ioctl structure (which is passed to kernel in linux
version of this protocol). This dictionary is later send to
kernel. After successful ioctl call is proplib dictionary parsed
to dm_ioctl struct. This way I keep netbsd changes in 2 files and
we can upgrade libdevmapper library to new versions easily.

I have a blog at [1] I keep it updated so if you are interested in
this SOC project try to look there.

*http://147.175.97.81:8080/dm/tags viewmtn or mtn://147.175.97.81

[1] http://haadbsd.blogspot.com/

Regards

Adam.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFIRaw+lIxPgX3Go0MRAsX9AKDgNXzdZSVvd8UjtnewMm5PBsxMywCgjn4V
PaRn2/XUh0zsoNDt1XV7eT8=
=lOHI
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index