allow dm-ioctl.ko to be used
Subsystems (2)
PATCH 1/1 allow dm-ioctl.ko to be used
I guess no one runs the dm code as a module :)
Here's a small patch that allows dm-ioctl.ko to be loaded. It is against the latest 2.5.52-bk tree. Joe, please add this to the next set of patches you send out.
thanks,
greg k-h
===== drivers/md/Makefile 1.10 vs edited =====
drivers/md/Makefile +1 -1
@@ -2,7 +2,7 @@ # Makefile for the kernel software RAID and LVM drivers. # -export-objs := md.o xor.o dm-table.o dm-target.o +export-objs := md.o xor.o dm-table.o dm-target.o dm.o dm-mod-objs := dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \ dm-ioctl.o
===== drivers/md/dm-table.c 1.5 vs edited =====
drivers/md/dm-table.c +8 -0
@@ -752,3 +752,11 @@EXPORT_SYMBOL (dm_get_device);EXPORT_SYMBOL (dm_put_device);EXPORT_SYMBOL (dm_table_event); +EXPORT_SYMBOL (dm_table_add_target); +EXPORT_SYMBOL (dm_table_complete); +EXPORT_SYMBOL (dm_table_get_num_targets); +EXPORT_SYMBOL (dm_table_put); +EXPORT_SYMBOL (dm_table_create); +EXPORT_SYMBOL (dm_table_get_target); +EXPORT_SYMBOL (dm_table_get_devices); +EXPORT_SYMBOL (dm_table_add_wait_queue);
===== drivers/md/dm.c 1.14 vs edited =====
drivers/md/dm.c +10 -0
@@ -863,3 +863,13 @@MODULE_DESCRIPTION (DM_NAME " driver" );MODULE_AUTHOR ("Joe Thornber <[email protected]>" );MODULE_LICENSE ("GPL" ); + +EXPORT_SYMBOL (dm_create); +EXPORT_SYMBOL (dm_get); +EXPORT_SYMBOL (dm_put); +EXPORT_SYMBOL (dm_disk); +EXPORT_SYMBOL (dm_get_table); +EXPORT_SYMBOL (dm_suspended); +EXPORT_SYMBOL (dm_suspend); +EXPORT_SYMBOL (dm_resume); +EXPORT_SYMBOL (dm_swap_table);
Quoted 5 lines · Greg KH
I guess no one runs the dm code as a module :)
Here's a small patch that allows dm-ioctl.ko to be loaded. It is against the latest 2.5.52-bk tree. Joe, please add this to the next set of patches you send out.
Ok, seems that dm-ioctl only gets built as a stand alone module with the "testing" patches on Joe's web site, that's why no one else was having this problem :)
Joe, if you want to add this patch, please do, but I now realize that it isn't necessary for people to use the in-kernel version of dm right now.
thanks,
greg k-h