[Linux-cachefs] [PATCH] cachefiles: allocate static minor for /dev/cachefiles
David Howells
dhowells at redhat.com
Thu Jun 22 13:42:54 UTC 2023
Marcel Holtmann <marcel at holtmann.org> wrote:
> The cachefiles misc character device uses MISC_DYNAMIC_MINOR and thus
> doesn't support module auto-loading. Assign a static minor number for it
> and provide appropriate module aliases for it. This is enough for kmod to
> create the /dev/cachefiles device node on startup and facility module
> auto-loading.
Why? The systemd unit file for it just modprobe's the module first. It's a
specialist device file only for use by the appropriate daemon.
David
More information about the Linux-cachefs
mailing list