check if root file system is not mounted */
| 2065 | |
| 2066 | /* check if root file system is not mounted */ |
| 2067 | static bool |
| 2068 | linker_root_mounted(void) |
| 2069 | { |
| 2070 | struct pwd *pwd; |
| 2071 | bool ret; |
| 2072 | |
| 2073 | if (rootvnode == NULL) |
| 2074 | return (false); |
| 2075 | |
| 2076 | pwd = pwd_hold(curthread); |
| 2077 | ret = pwd->pwd_rdir != NULL; |
| 2078 | pwd_drop(pwd); |
| 2079 | return (ret); |
| 2080 | } |
| 2081 | |
| 2082 | /* |
| 2083 | * Find a file which contains given module and load it, if "parent" is not |
no test coverage detected