NetBSD-5.0.2/external/gpl2/libdevmapper/dist/contrib/dm-reverse.README

Sure. It's basically code from dm-linear.c and dm-stripe.c (you can
reverse chunks of a given size). The target syntax is "<chunk size>
<device> <first sector>".

I added some lines so that it can be compiled as module outside of the
kernel (the reference counting is working fine).

dm-reverse.c is attached.

--
Christophe Saout <christophe@saout.de>
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html