autofs: set things up *before* registering fs type
it's not a serious race, but we really want misc device before anybody gets to mount this sucker. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Родитель
ca7068c41a
Коммит
54bf586e1f
|
@ -31,11 +31,11 @@ static int __init init_autofs4_fs(void)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
autofs_dev_ioctl_init();
|
||||||
|
|
||||||
err = register_filesystem(&autofs_fs_type);
|
err = register_filesystem(&autofs_fs_type);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
autofs_dev_ioctl_exit();
|
||||||
|
|
||||||
autofs_dev_ioctl_init();
|
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче