summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2010-08-12 04:14:05 +0100
committerAlasdair G Kergon <agk@redhat.com>2010-08-12 04:14:05 +0100
commit7e507eb6432afdd798d4c6dccf949b8c43ef151c (patch)
treea9c91e310bfd8e26c326f094eade79f5baf1ee25 /drivers/md
parent57cba5d3658d9fdc019c6af14a2d80aefa651e56 (diff)
downloadop-kernel-dev-7e507eb6432afdd798d4c6dccf949b8c43ef151c.zip
op-kernel-dev-7e507eb6432afdd798d4c6dccf949b8c43ef151c.tar.gz
dm: allow autoloading of dm mod
Add devname:mapper/control and MAPPER_CTRL_MINOR module alias to support dm-mod module autoloading. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Peter Rajnoha <prajnoha@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-ioctl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 4d4ced8..3e39193 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -1599,12 +1599,15 @@ static const struct file_operations _ctl_fops = {
};
static struct miscdevice _dm_misc = {
- .minor = MISC_DYNAMIC_MINOR,
+ .minor = MAPPER_CTRL_MINOR,
.name = DM_NAME,
- .nodename = "mapper/control",
+ .nodename = DM_DIR "/" DM_CONTROL_NODE,
.fops = &_ctl_fops
};
+MODULE_ALIAS_MISCDEV(MAPPER_CTRL_MINOR);
+MODULE_ALIAS("devname:" DM_DIR "/" DM_CONTROL_NODE);
+
/*
* Create misc character device and link to DM_DIR/control.
*/
OpenPOWER on IntegriCloud