mirror of
https://github.com/schoebel/mars
synced 2024-12-24 07:32:46 +00:00
main: deny modprobe when /mars is no mountpoint
This commit is contained in:
parent
6d9ffefb84
commit
ff79d8b30d
@ -6861,6 +6861,11 @@ static int __init init_main(void)
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
if (unlikely(!mars_is_mountpoint("/mars/"))) {
|
||||
printk(KERN_ERR "/mars is no mountpoint\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* This must come first to be effective */
|
||||
status = mars_stat(SAY_TEST_STR, &dummy, true);
|
||||
if (!status)
|
||||
|
Loading…
Reference in New Issue
Block a user