You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Miklos Szeredi
parent
ff17be0864
commit
cb2ffb26e6
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user