mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
fd36a66ccc
o Only one list of block devices for all tables o Locking to ensure that block devices only get opened once o Block device handling is now in dm-blkdev.c o We open block devices when we create the tables and hold them open until the table is destroyed (this prevents the module for the device being unloaded after table parsing and before the table is used) o We compute the hardsect size when the table is created rather than when someone requests it. Still to fix/change: o Probably want to hash the device lists in dm-blkdev.c and also remove refs to struct dm_bdev outside this file. o Need to ensure that hardsect_size doesn't change when new tables are swapped in (maybe this ought to be a per volume parameter and the tables will only parse if they match the value for the volume?). Things are changing fast here, so if you want a stable version of thic code try checking out yesterdays.
26 lines
805 B
Plaintext
26 lines
805 B
Plaintext
--- linux-2.4.9-ac5/drivers/md/Makefile Sat Sep 1 16:24:46 2001
|
|
+++ linux/drivers/md/Makefile Fri Sep 14 09:12:39 2001
|
|
@@ -7,6 +7,7 @@
|
|
export-objs := md.o xor.o
|
|
list-multi := lvm-mod.o
|
|
lvm-mod-objs := lvm.o lvm-snap.o lvm-fs.o
|
|
+dm-mod-objs := dm.o dm-table.o dm-target.o dm-fs.o dm-parse.o dm-blkdev.o
|
|
|
|
# Note: link order is important. All raid personalities
|
|
# and xor.o must come before md.o, as they each initialise
|
|
@@ -19,8 +20,14 @@
|
|
obj-$(CONFIG_MD_RAID5) += raid5.o xor.o
|
|
obj-$(CONFIG_BLK_DEV_MD) += md.o
|
|
obj-$(CONFIG_BLK_DEV_LVM) += lvm-mod.o
|
|
+obj-$(CONFIG_BLK_DEV_DM) += dm-mod.o
|
|
+obj-$(CONFIG_BLK_DEV_DM_LINEAR) += dm-linear.o
|
|
|
|
include $(TOPDIR)/Rules.make
|
|
|
|
lvm-mod.o: $(lvm-mod-objs)
|
|
$(LD) -r -o $@ $(lvm-mod-objs)
|
|
+
|
|
+dm-mod.o: $(dm-mod-objs)
|
|
+ $(LD) -r -o $@ $(dm-mod-objs)
|
|
+
|