[Yellowstone] Try to spawn the teton process from disk.
This commit is contained in:
parent
9e05b3b3dd
commit
0e99189dba
7 changed files with 61 additions and 4 deletions
|
|
@ -22,14 +22,19 @@ glcr::ErrorCode VFSServer::HandleOpenFile(const OpenFileRequest& request,
|
|||
|
||||
ASSIGN_OR_RETURN(auto files, driver_.ReadDirectory(2));
|
||||
for (uint64_t i = 1; i < path_tokens.size() - 1; i++) {
|
||||
for (uint64_t j = 0; j < files.size(); j++) {
|
||||
bool found_token = false;
|
||||
for (uint64_t j = 0; j < files.size() && !found_token; j++) {
|
||||
if (path_tokens.at(i) ==
|
||||
glcr::StringView(files.at(j).name, files.at(j).name_len)) {
|
||||
ASSIGN_OR_RETURN(files, driver_.ReadDirectory(files.at(j).inode));
|
||||
found_token = true;
|
||||
}
|
||||
}
|
||||
dbgln("Directory '{}' not found.", glcr::String(path_tokens.at(i)).cstr());
|
||||
return glcr::NOT_FOUND;
|
||||
if (!found_token) {
|
||||
dbgln("Directory '{}' not found.",
|
||||
glcr::String(path_tokens.at(i)).cstr());
|
||||
return glcr::NOT_FOUND;
|
||||
}
|
||||
}
|
||||
|
||||
uint64_t inode_num;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue