-
Notifications
You must be signed in to change notification settings - Fork 0
nfsd load
Donald Buczek edited this page Jul 20, 2020
·
8 revisions
MODULE_ALIAS_FS("nfsd");
will make alias fs-nfsd nfsd
appear in /lib/modules/$(uname -r)/modules.aliases
, so when mount -t nfsd nfsd /proc/fs/nfsd
is executed by proc-fs-nfsd.mount
, the module is requested by https://elixir.bootlin.com/linux/v5.7/source/fs/filesystems.c#L273
struct file_system_type *get_fs_type(const char *name)
{
/* ... */
fs = __get_fs_type(name, len);
if (!fs && (request_module("fs-%.*s", len, name) == 0)) {
fs = __get_fs_type(name, len);
/* ... */