Other flags let you change the installation & working directories.
Example:
- ./configure --with-kernel-dir=/usr/src/linux-2.4.19-rc1
+ ./configure --with-kernel-dir=/usr/src/linux-2.4.19
2) Patch, configure and build a new kernel containing device-mapper.
on the 'ioctl' interface. (Use CVS to get the older 'fs' patches if
you want.)
- patches/common holds the constituent patches - see patches/common/README.
+ patches/common holds the constituent patches.
+ You may need to use these if some of the patches (e.g. mempool)
+ have already been applied to your kernel. See patches/common/README.
Running 'make symlinks' from the 'kernel' subdirectory will put symbolic
- links into your kernel tree pointing back at the source files.
+ links into your kernel tree pointing back at the device-mapper source files.
3) Build and install the shared library (libdevmapper.so) that
and use modprobe dm-mod to load the module
post-install dm-mod /etc/init.d/devmap_mknod.sh
- The script creates the /dev/device-mapper/control device for the ioctl
+ The script creates the /dev/mapper/control device for the ioctl
interface using the major and minor numbers that have been allocated
dynamically. It prints a message if it works or else it fails silently
with a non-zero status code (which you probably want to test for).
Or proceed to install a beta version of the new LVM2 tools.
+Note if you are upgrading
+=========================
+ /dev/mapper was called /dev/device-mapper prior to 0.96.04.
+ Consequently scripts/devmap_mknod.sh has been updated.
Notes about the 'proof of concept' filesystem interface
=======================================================
-This directory contains a beta release of the proposed device-mapper
-for the linux kernel.
+This directory contains the device-mapper for the linux kernel.
For more information about the device mapper read the INTRO file.
Installation instructions are in INSTALL.
CVS password: cvs1
cvs -d :pserver:cvs@tech.sistina.com:/data/cvs checkout device-mapper
+The kernel components are also available from the BitKeeper tree at:
+ http://device-mapper.bkbits.net:8080/2.4-stable/
+
Mailing list for discussion/bug reports etc.
lvm-devel@sistina.com
Subscribe from http://lists.sistina.com/mailman/listinfo/lvm-devel
-diff -Nru linux-2.4.19-rc1/include/linux/mempool.h linux/include/linux/mempool.h
+diff -Nru linux-2.4.19/include/linux/mempool.h linux/include/linux/mempool.h
--- /dev/null Wed Dec 31 16:00:00 1969
+++ linux/include/linux/mempool.h Tue Apr 23 20:55:52 2002
@@ -0,0 +1,33 @@
+extern void mempool_free(void *element, mempool_t *pool);
+
+#endif /* _LINUX_MEMPOOL_H */
-diff -Nru linux-2.4.19-rc1/mm/Makefile linux/mm/Makefile
---- linux-2.4.19-rc1/mm/Makefile Mon Mar 25 14:40:15 2002
+diff -Nru linux-2.4.19/mm/Makefile linux/mm/Makefile
+--- linux-2.4.19/mm/Makefile Mon Mar 25 14:40:15 2002
+++ linux/mm/Makefile Mon Mar 25 14:40:15 2002
@@ -9,12 +9,12 @@
obj-$(CONFIG_HIGHMEM) += highmem.o
-diff -Nru linux-2.4.19-rc1/mm/mempool.c b/mm/mempool.c
+diff -Nru linux-2.4.19/mm/mempool.c b/mm/mempool.c
--- /dev/null Wed Dec 31 16:00:00 1969
+++ linux/mm/mempool.c Tue Apr 23 20:55:52 2002
@@ -0,0 +1,277 @@
-diff -Nru linux-2.4.19-rc1/include/linux/mempool.h linux/include/linux/mempool.h
---- linux-2.4.19-rc1/include/linux/mempool.h Wed Dec 31 16:00:00 2001
+diff -Nru linux-2.4.19/include/linux/mempool.h linux/include/linux/mempool.h
+--- linux-2.4.19/include/linux/mempool.h Wed Dec 31 16:00:00 2001
+++ linux/include/linux/mempool.h Tue Apr 23 20:55:52 2002
@@ -29,5 +29,13 @@
extern void mempool_destroy(mempool_t *pool);
+void mempool_free_slab(void *element, void *pool_data);
+
#endif /* _LINUX_MEMPOOL_H */
-diff -Nru linux-2.4.19-rc1/mm/mempool.c linux/mm/mempool.c
---- linux-2.4.19-rc1/mm/mempool.c Wed Dec 31 16:00:00 1969
+diff -Nru linux-2.4.19/mm/mempool.c linux/mm/mempool.c
+--- linux-2.4.19/mm/mempool.c Wed Dec 31 16:00:00 1969
+++ linux/mm/mempool.c Tue Apr 23 20:55:52 2002
@@ -268,10 +268,28 @@
}
-diff -Nru linux-2.4.19-rc1/mm/vmalloc.c linux/mm/vmalloc.c
---- linux-2.4.19-rc1/mm/vmalloc.c Wed Jun 12 12:04:44 2002
+diff -Nru linux-2.4.19/mm/vmalloc.c linux/mm/vmalloc.c
+--- linux-2.4.19/mm/vmalloc.c Wed Jun 12 12:04:44 2002
+++ linux/mm/vmalloc.c Thu Jun 13 13:13:44 2002
@@ -321,3 +321,22 @@
read_unlock(&vmlist_lock);
+
+ return addr;
+}
-diff -Nru linux-2.4.19-rc1/include/linux/vmalloc.h linux/include/linux/vmalloc.h
---- linux-2.4.19-rc1/include/linux/vmalloc.h Wed Jun 12 12:35:58 2002
+diff -Nru linux-2.4.19/include/linux/vmalloc.h linux/include/linux/vmalloc.h
+--- linux-2.4.19/include/linux/vmalloc.h Wed Jun 12 12:35:58 2002
+++ linux/include/linux/vmalloc.h Thu Jun 13 13:13:39 2002
@@ -25,6 +25,7 @@
extern void vmfree_area_pages(unsigned long address, unsigned long size);
/*
* Allocate any pages
-diff -Nru linux-2.4.19-rc1/kernel/ksyms.c linux/kernel/ksyms.c
---- linux-2.4.19-rc1/kernel/ksyms.c Wed Jun 26 18:42:28 2002
+diff -Nru linux-2.4.19/kernel/ksyms.c linux/kernel/ksyms.c
+--- linux-2.4.19/kernel/ksyms.c Wed Jun 26 18:42:28 2002
+++ linux/kernel/ksyms.c Wed Jun 26 18:37:01 2002
@@ -109,6 +109,7 @@
EXPORT_SYMBOL(vfree);