[dm-devel] Autoload of DM kernel targets?

NeilBrown neilb at suse.com
Mon Apr 24 04:05:58 UTC 2017


On Fri, Apr 21 2017, Andrei Borzenkov wrote:

> See as example https://bugzilla.opensuse.org/show_bug.cgi?id=983221
>
> "non-standard" DM targets do not appear to be autoloaded (the problem
> was hit with thin-pool, but it seems to apply to other targets as well).
> "Common" targets (like linear) are provided by dm-mod which seems to be
> autoloaded by virtue of /dev/mapper/control.
>
> Is it expected and intentional? Or are users required to manually load
> necessary modules on boot?
>
> TIA
>
> -andrei
>
> --
> dm-devel mailing list
> dm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

Does this patch fix it for you?

diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index 8f811dc8b3cc..d2c6a9a12d75 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -4400,3 +4400,4 @@ MODULE_PARM_DESC(no_space_timeout, "Out of data space queue IO timeout in second
 MODULE_DESCRIPTION(DM_NAME " thin provisioning target");
 MODULE_AUTHOR("Joe Thornber <dm-devel at redhat.com>");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("dm-thin-pool");

NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20170424/f4a74c41/attachment.sig>


More information about the dm-devel mailing list