lum-dmraid45 preview

Stefan Bader stefan.bader at canonical.com
Wed Feb 13 23:20:48 UTC 2008


Hi,

I took an approach to get the device-mapper raid45 target into lum.
Hopefully I got everything condensed into one file now. The only kernel
dependency I cannot get around is an additionally exported symbol:

diff -up linux-2.6.24/drivers/md/dm.c.raid45 linux-2.6.24/drivers/md/dm.c
--- linux-2.6.24/drivers/md/dm.c.raid45 2008-02-06 13:54:31.000000000 +0100
+++ linux-2.6.24/drivers/md/dm.c        2008-02-06 13:54:52.000000000 +0100
@@ -1566,6 +1566,7 @@ struct gendisk *dm_disk(struct mapped_de
 {
        return md->disk;

+EXPORT_SYMBOL_GPL(dm_disk);

Will that be ok to add to the hardy kernel code? I would say it doesn't
hurt anybody. Since the dmraid45 target itself is quite kernel dependend
I would guess it sooner or later ends up in the mainstream code (and so
will the exported symbol). Attached is the whole lum diff.

This is very basic at the moment. I did not check for good cleanup or
load tested. This is just for everyone to have a chance to look at the
stuff.

-Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-UBUNTU-Pull-in-the-RAID4-5-target-for-device-mapper.patch.gz
Type: application/x-gzip
Size: 48811 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20080213/8be459ff/attachment.bin>


More information about the kernel-team mailing list