From: Alasdair Kergon Date: Wed, 14 Aug 2002 17:34:05 +0000 (+0000) Subject: update docs X-Git-Tag: beta5~3 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=aa826e217bad841a36660744d461cb3b1572e591;p=dm.git update docs --- diff --git a/INSTALL b/INSTALL index b479627..75e1166 100644 --- a/INSTALL +++ b/INSTALL @@ -11,7 +11,7 @@ Device Mapper installation 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. @@ -30,10 +30,12 @@ Device Mapper installation 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 @@ -57,7 +59,7 @@ Device Mapper installation 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). @@ -73,6 +75,10 @@ Device Mapper installation 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 ======================================================= diff --git a/README b/README index 3f6c369..e9e29ce 100644 --- a/README +++ b/README @@ -1,5 +1,4 @@ -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. @@ -11,6 +10,9 @@ To access the CVS tree use: 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 --git a/patches/common/linux-2.4.19-mempool.patch b/patches/common/linux-2.4.19-mempool.patch index f9374fe..2386fde 100644 --- a/patches/common/linux-2.4.19-mempool.patch +++ b/patches/common/linux-2.4.19-mempool.patch @@ -1,4 +1,4 @@ -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 @@ @@ -35,8 +35,8 @@ diff -Nru linux-2.4.19-rc1/include/linux/mempool.h linux/include/linux/mempool.h +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 @@ @@ -53,7 +53,7 @@ diff -Nru linux-2.4.19-rc1/mm/Makefile linux/mm/Makefile 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 --git a/patches/common/linux-2.4.19-mempool_slab.patch b/patches/common/linux-2.4.19-mempool_slab.patch index b7dafe0..5ebe844 100644 --- a/patches/common/linux-2.4.19-mempool_slab.patch +++ b/patches/common/linux-2.4.19-mempool_slab.patch @@ -1,5 +1,5 @@ -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); @@ -15,8 +15,8 @@ diff -Nru linux-2.4.19-rc1/include/linux/mempool.h linux/include/linux/mempool.h +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 --git a/patches/common/linux-2.4.19-vcalloc.patch b/patches/common/linux-2.4.19-vcalloc.patch index b1258f3..e8fc41b 100644 --- a/patches/common/linux-2.4.19-vcalloc.patch +++ b/patches/common/linux-2.4.19-vcalloc.patch @@ -1,5 +1,5 @@ -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); @@ -24,8 +24,8 @@ diff -Nru linux-2.4.19-rc1/mm/vmalloc.c linux/mm/vmalloc.c + + 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); @@ -35,8 +35,8 @@ diff -Nru linux-2.4.19-rc1/include/linux/vmalloc.h linux/include/linux/vmalloc.h /* * 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);