[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
NetBSD libdevmapper port
-----BEGIN PGP SIGNED MESSAGE-----
*** Please keep me on CC when you replying from dm-devel list I'm not
currently subscribed there. ***
My name is Adam Hamsik and this summer I'm working on GSOC project
Write and improve LVM driver. As my task I have rewritten (We can't
include GPL software into NetBSD kernel therefore I have rewritten it
from scratch)dm like driver for NetBSD and ported libdevmapper +
lvm2tools to NetBSD. There are some small differences between
Linux and NetBSD such as:
a) NetBSD doesn't use proc filesystem like linux does.
b) NetBSD has 2 types of devices(when we talk about disk devices) raw
raw device is char device which allow users directly from
device(without buffer cache).
After the first implementation of dm-driver my mentor suggested to
rewrite/clean dm-ioctl interface to be more NetBSD-like. I have
implemented new interface based on proplib library  it is based on
made by apple . I have added 3 files to libdevmapper
include/netbsd/netbsd-dm.h -> file shared between kernel driver and
lib/ioctl/libdm_netbsd.c -> file with external functions for parsing
native NetBSD proplist dictionaries to
libdevmapper dm_ioctl structure.
lib/ioctl/libdm-nbsd-iface.c -> this is copied/changed libdm-iface.c I
found that number of NetBSD specific changes is bigger than I can
easily #ifdef them, therefore I have added new
NetBSD interface file.
I have created patch against latest release of libdevmapper, it would
be great if we will be able to manage
commiting of this patch to libdevmapper main repo. My patch is
currently not ready to commit, it needs major cleanup, but I thought
that it would be good to let dm developers know about my effort and
show my work to them.
My patch is located here , I have uploaded patch against lvm2tools,
too. But it is patch against 2.02.28.
Because there were quite massive changes to lvm2tools in latest
releases I will report lvm2tools again and
merge my changes with latest lvm release.
There is also my BSD licensed device-mapper driver which is located
Any suggestions, comments are welcome.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
-----END PGP SIGNATURE-----
Main Index |
Thread Index |