summaryrefslogtreecommitdiffstats
path: root/fs/fuse
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-09-09 20:18:27 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2013-10-01 16:44:54 +0200
commitcb2ffb26e67ef89c44f46e971440cda2f83ae236 (patch)
tree025102b08390b018b47449c2aee6f0d1794d49a6 /fs/fuse
parentff17be0864777fe0dfb0a477868a8cb95c1ff90e (diff)
downloadop-kernel-dev-cb2ffb26e67ef89c44f46e971440cda2f83ae236.zip
op-kernel-dev-cb2ffb26e67ef89c44f46e971440cda2f83ae236.tar.gz
cuse: add fix minor number to /dev/cuse
This allows udev (or more recently systemd-tmpfiles) to create /dev/cuse on boot, in the same way as /dev/fuse is currently created, and the corresponding module to be loaded on first access. The corresponding functionalty was introduced for fuse in commit 578454f. Signed-off-by: Tom Gundersen <teg@jklm.no> Cc: Kay Sievers <kay@vrfy.org> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse')
-rw-r--r--fs/fuse/cuse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/fuse/cuse.c b/fs/fuse/cuse.c
index adbfd66..24da581 100644
--- a/fs/fuse/cuse.c
+++ b/fs/fuse/cuse.c
@@ -589,11 +589,14 @@ static struct attribute *cuse_class_dev_attrs[] = {
ATTRIBUTE_GROUPS(cuse_class_dev);
static struct miscdevice cuse_miscdev = {
- .minor = MISC_DYNAMIC_MINOR,
+ .minor = CUSE_MINOR,
.name = "cuse",
.fops = &cuse_channel_fops,
};
+MODULE_ALIAS_MISCDEV(CUSE_MINOR);
+MODULE_ALIAS("devname:cuse");
+
static int __init cuse_init(void)
{
int i, rc;
OpenPOWER on IntegriCloud