[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make loader app load updated system image directly #3421

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yuying-y
Copy link
Contributor
@yuying-y yuying-y commented Jun 1, 2024

b/344069914
b/328421395

Change-Id: I66734aed7b52bac4b60e823df4873c5dccc8c0f2

@yuying-y yuying-y force-pushed the load_sys branch 4 times, most recently from a22fb2c to d2d9121 Compare June 4, 2024 23:39
@yuying-y yuying-y requested a review from y4vor June 4, 2024 23:40
@yuying-y
Copy link
Contributor Author
yuying-y commented Jun 4, 2024

Tested and verified on Linux

}

bool version_found = false;
std::ifstream manifest_file(std::string(manifest_file_path.data()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use third_party/jsoncpp to parse the manifest.json.
Also adde unit tests to starboard/loader_app/slot_management_test.cc

b/344069914
b/328421395

Change-Id: I66734aed7b52bac4b60e823df4873c5dccc8c0f2
#include <sys/stat.h>

#include <algorithm>
#include <fstream>
Copy link
Member
@kaidokert kaidokert Jun 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my response in the chat, but avoid using <fstream>, this will lead to leaks with current Starboard. In here, you can probably use starboard/common/file to read in file content, and then pass it on to the JSON parser with a string in-memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants